diff options
Diffstat (limited to 'dev-python/sqlglot')
| -rw-r--r-- | dev-python/sqlglot/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/sqlglot/sqlglot-30.12.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index a3e4078bf344..6c8cf1e6301d 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -1 +1,2 @@ DIST sqlglot-30.11.0.tar.gz 5893125 BLAKE2B e9ba0fa6d52f15970ac9afd23f6336febc94fc6f01ce9db03111fd62e7b9d55172a4b9a2405c0086b540187802651825b9db87af3f1a248b6228536bf3d88562 SHA512 f751b1680b7f8a330f5264a79a571552d8e571dd0966099928c8600e646bd2a7b585c95ec534bd1efe68e3f19c943fa88bcdf8aa9cd9bd8787f47040c70cc343 +DIST sqlglot-30.12.0.tar.gz 5905110 BLAKE2B 0c69697a4d5f2c98970bbbf8778305601f43f3f594d3eb5a848ed462ec22b01647db8336c227d66977b3c95bcc28f979fcedd0c96a39b3bf57ebc2579850c1ae SHA512 843a6bccea5a8cae20efe536d15f0146493d00ba548a2f2bfe4375b6172c0cfe16800117f2a81cd52bf2829a1f3a1158eca85d911bb7beeefe5d809e8aea33ab diff --git a/dev-python/sqlglot/sqlglot-30.12.0.ebuild b/dev-python/sqlglot/sqlglot-30.12.0.ebuild new file mode 100644 index 000000000000..063fa5096326 --- /dev/null +++ b/dev-python/sqlglot/sqlglot-30.12.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +# Native extensions removed: it uses mypyc which is incredibly slow +# and then the extension crashes anyway. Upstream uses their own mypy +# fork which might help but that's just insane. + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + rm -rf sqlglot || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} |
