commit:     ea2488f7047120f2f8da3423dcbe3a017b44cc4c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  8 05:18:32 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec  8 05:18:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea2488f7

dev-python/sqlglot: Bump to 20.1.0

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

 dev-python/sqlglot/Manifest              |  1 +
 dev-python/sqlglot/sqlglot-20.1.0.ebuild | 42 ++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest
index e35eb34fe7fa..141c284129d4 100644
--- a/dev-python/sqlglot/Manifest
+++ b/dev-python/sqlglot/Manifest
@@ -1,3 +1,4 @@
 DIST sqlglot-19.8.3.tar.gz 9093824 BLAKE2B 
fab19b444ffb1889c6d0b8c69e2212ef6c479e9814017e1a1106823143b3b5cd1a960e142e8c1ec1244918a2ddd333adaa10ddfb2514044131a7ca4af1761dff
 SHA512 
7f95c9e710f124f550ab2dd9fb9af42747987f7b8f536a7a5ea7596cf7d8fbcdc4c0565c2aec4d617bc705b65af34c2bccb57b9b43c43decc03d60cceb468aff
 DIST sqlglot-19.9.0.tar.gz 9096488 BLAKE2B 
c595fb7e1462bd87c94a7deadac10aeb2c2ffd28e13473d63d0823cf39af00043d74d96503c8334391eab50c58a56019f00773d5964d0428be38ee04588775a3
 SHA512 
9654942bc17d8afddc936d9ec1e9b6c5e21912689a3be20ea129d376e2a04a7f152424998f36f5dc6d5cc0861913e74b5f038acaaa12d9a64082157e3e179423
 DIST sqlglot-20.0.0.tar.gz 9100950 BLAKE2B 
e18085ae7b807290433dcdb92dd8d399b2f8821aa8085dfabdb534b542e3631968ada066df6614c41c1d7208812068bd89bc2d9b7788d67ea5830f055e72fba0
 SHA512 
b821864819b7d5c954586a16d5ccd7b255e761aaeb0cb46e20eaee3d615d1a7224954e50de44905e1f57d5a0f8457b611561fd948af1325e3423d47bcadf1333
+DIST sqlglot-20.1.0.tar.gz 9014694 BLAKE2B 
195034a059a42f6173de23ab75c2f6a4016d02ad03a5b5244d9ac6f1b40802476f708aeb5c5ebeee68ba310e8434db1b3b9912bc0898a36b84da8980912b946c
 SHA512 
646bcc41e2a03fe8c78d7b2aba9d6f1633f694376b09a9e3c9e9fac8c01775cab6cd98f32bf2e473ba2b92bebcbad32ef44689070b20dca607e354175272cc6d

diff --git a/dev-python/sqlglot/sqlglot-20.1.0.ebuild 
b/dev-python/sqlglot/sqlglot-20.1.0.ebuild
new file mode 100644
index 000000000000..1aed7015aa2b
--- /dev/null
+++ b/dev-python/sqlglot/sqlglot-20.1.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit 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"
+
+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"
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # remove fragile timing check
+       sed -i -e '/assertLessEqual(time\.time/d' tests/test_parser.py || die
+       distutils-r1_src_prepare
+}
+
+pkg_postinst() {
+       optfeature "simplifying timedelta expressions" 
dev-python/python-dateutil
+}

Reply via email to