diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-22 07:23:58 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-06-22 07:54:25 +0200 |
commit | cf6046808df3e04d93d8292fd217dfd367db1d36 (patch) | |
tree | 12d69c9e7856996719aa8ab07d9a0cab9ac19167 /dev-python/pysimdjson | |
parent | dev-python/configargparse: Bump to 1.5 (diff) | |
download | gentoo-cf6046808df3e04d93d8292fd217dfd367db1d36.tar.gz gentoo-cf6046808df3e04d93d8292fd217dfd367db1d36.tar.bz2 gentoo-cf6046808df3e04d93d8292fd217dfd367db1d36.zip |
dev-python/pysimdjson: Bump to 4.0.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pysimdjson')
-rw-r--r-- | dev-python/pysimdjson/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pysimdjson/pysimdjson-4.0.2.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/pysimdjson/Manifest b/dev-python/pysimdjson/Manifest index d28264699a9f..4b2bb95a2bd7 100644 --- a/dev-python/pysimdjson/Manifest +++ b/dev-python/pysimdjson/Manifest @@ -1,3 +1,4 @@ DIST pysimdjson-3.1.1.tar.gz 3286141 BLAKE2B f1fc63ffcaf524f23112438a8669caf4b4ffa0190bb20e2b851f61dfae386fe02bff1746dd4e68499bdaff3420d41401424fde1332222fe49211d32e09fdcab8 SHA512 9b1080d70f06e5a6d6467769a8146f642adee2c08391a87dd86eca9b0eb7666d9fed47a83d991843b07c2b96906dbf0ccacf2425bfc3ce4cb22731e03b12122e DIST pysimdjson-3.2.0.tar.gz 3357720 BLAKE2B 596738da76d008563e31c6231d348fefb8f37dd4dee2490339a6233ba0a39ab24dc3facf1d02a4621f1d6e01dfb4af8673651d79095919ee7f4532a25dd1c63f SHA512 4c72d71ead5675c2d9b1551b5dacadee013fbaa74f93b2345920f0bac8eb65d79dd84ee817d07fea0bdf477c1c97ca4746048fbdd06a4bfa516e063d89724226 DIST pysimdjson-4.0.0.tar.gz 3738787 BLAKE2B 744d6bc53511e03e8e716d6c65771432c7bf8f7876bbf8c78d09459a8b170d3d396f9cc8996894f67110f4b7389526d454dffd687b1fda22df7f76f027af44db SHA512 8b3040ce44bb5042b70a14d9f67c312a375d1a12ba7a66466935a48ad0f8def9c21e200c8c93aa755110a674e95920fa7d0567c4f584be5392b70719994a2213 +DIST pysimdjson-4.0.2.tar.gz 3740054 BLAKE2B 379c8637096074615f2045171e0950af0190e8485db6a1734f4fcd19d9eeeebd91cb79c18abd2fe6256287f15aa6a3c12c1283e4affa131db14f9948ab2f0d63 SHA512 537b7958dd3429831ee201b6a4fc5fa8fca50ad14def016b472d3f234f81175441152c1823eed0bcad06f59e274e2b6b036f26a3af8f6977ceea5807471de4a5 diff --git a/dev-python/pysimdjson/pysimdjson-4.0.2.ebuild b/dev-python/pysimdjson/pysimdjson-4.0.2.ebuild new file mode 100644 index 000000000000..936ee8de2d36 --- /dev/null +++ b/dev-python/pysimdjson/pysimdjson-4.0.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Python bindings for simdjson" +HOMEPAGE="https://github.com/TkTech/pysimdjson" +SRC_URI="https://github.com/TkTech/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/simdjson:= +" +DEPEND=${RDEPEND} +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/pysimdjson-4.0.0-unbundle.patch +) + +src_prepare() { + # benchmarks aren't run + sed -i -e 's:pytest-benchmark::' setup.cfg || die + # force regen + rm simdjson/csimdjson.cpp || die + # bundled lib :-( + rm simdjson/simdjson.{cpp,h} || die + + distutils-r1_src_prepare + + export BUILD_WITH_CYTHON=1 + export BUILD_WITH_SYSTEM_LIB=1 +} |