commit:     fe337007024d348e6de40eddc69bd5eb860499c6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  3 06:39:40 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  3 07:27:16 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe337007

dev-python/sqlglot: Bump to 28.8.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/sqlglot/Manifest              |  1 +
 dev-python/sqlglot/sqlglot-28.8.0.ebuild | 92 ++++++++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest
index 5426722481bd..e66f66f523f2 100644
--- a/dev-python/sqlglot/Manifest
+++ b/dev-python/sqlglot/Manifest
@@ -2,3 +2,4 @@ DIST sqlglot-27.24.2-crates.tar.xz 8973180 BLAKE2B 
f893ebe4b94d4c2ab94f8fa902e51
 DIST sqlglot-27.29.0.tar.gz 5503507 BLAKE2B 
f9c92b8f287ca4c99c792d005e62846afd669ba27b5d09042de06c8c3fa5e46b21abdf5134cc81ae3ae2cb13d0a5997c56ac07c14e5fb938544d5dbc08c70632
 SHA512 
5fc7a8a81b39a2dba007b501f1f5c2de9fa1e74b39d44e1bea706491db1ead0329aa2fbfb7c4997a50458137af70d259a227a8662ac26ba2904dde2b66922bb1
 DIST sqlglot-28.7.0-crates.tar.xz 6575196 BLAKE2B 
29a29117c0118312e425cadb4ad2b2051bb3e7740175fab28865740051916b636f161ad0aa1afc346575698156b595c05cf9eec217b1ddd92d2f8a8741ba1686
 SHA512 
205a6932d593c41439e8de6b694bb1206e554c92ee2647cdd0fa33cf5497f46bea2e67e5e6b3e4af336837e3bd2cf2c0b82dfd7dc99a283bf134ba62c413d2ff
 DIST sqlglot-28.7.0.tar.gz 5717197 BLAKE2B 
279e940abd537b75f69d0aaaa500fc4622daa175840bc0ba8126216bdb2d8860f641d3b751fd51879ac20e44c898cf4bd7b0518bd906f74c8b243d791e21adba
 SHA512 
284b68d0848ac134ab2950a367b3dee875de2339605b392df2098e0f6c08ba6eba46c8496e773dba8a131613c668e7222622869bcf6ae09ee190e0203286d989
+DIST sqlglot-28.8.0.tar.gz 5734732 BLAKE2B 
06ffba829543a83bf70880f64eb5822c3f56c791e4faea810e61d307f19c59fb567fdce42b67e7713b5bd48da396c4667fe9deb1238ae49311ba954a5c0cd2c2
 SHA512 
cc5441759541adaa642954d0abc8dccb1a77a400182b87a12e5e4ebd573233431ae39f90bfb7f5f9032fa7ad716f8b53f1eec4706613b69c221d118079a6057d

diff --git a/dev-python/sqlglot/sqlglot-28.8.0.ebuild 
b/dev-python/sqlglot/sqlglot-28.8.0.ebuild
new file mode 100644
index 000000000000..101fd7f7399d
--- /dev/null
+++ b/dev-python/sqlglot/sqlglot-28.8.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+CARGO_OPTIONAL=1
+RUST_MIN_VER="1.81.0"
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+CRATE_PV=28.7.0
+
+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/
+"
+SRC_URI+="
+       native-extensions? (
+               
https://github.com/gentoo-crate-dist/sqlglot/releases/download/v${CRATE_PV}/sqlglot-${CRATE_PV}-crates.tar.xz
+       )
+"
+
+LICENSE="MIT"
+LICENSE+=" native-extensions? ("
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016
+"
+LICENSE+=" )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="+native-extensions"
+
+BDEPEND="
+       native-extensions? (
+               ${RUST_DEPEND}
+               dev-util/maturin[${PYTHON_USEDEP}]
+       )
+       test? (
+               dev-python/pytz[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so"
+
+pkg_setup() {
+       use native-extensions && rust_pkg_setup
+}
+
+src_unpack() {
+       cargo_src_unpack
+}
+
+python_compile() {
+       distutils-r1_python_compile
+
+       if use native-extensions; then
+               local DISTUTILS_USE_PEP517=maturin
+               cd sqlglotrs || die
+               distutils-r1_python_compile
+               cd - >/dev/null || die
+       fi
+}
+
+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"
+       )
+
+       # make sure not to use an earlier installed version
+       local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0)
+       rm -rf sqlglotrs || die
+       epytest
+}
+
+pkg_postinst() {
+       optfeature "simplifying timedelta expressions" 
dev-python/python-dateutil
+}

Reply via email to