diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-30 07:42:11 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-30 09:20:35 +0200 |
commit | 2365946aa558979eb2e51b67390d49747b43ad3a (patch) | |
tree | ba6d1241865ff8f781ed0629f27311681b65fde0 /dev-python | |
parent | dev-python/marshmallow: Bump to 3.16.0 (diff) | |
download | gentoo-2365946aa558979eb2e51b67390d49747b43ad3a.tar.gz gentoo-2365946aa558979eb2e51b67390d49747b43ad3a.tar.bz2 gentoo-2365946aa558979eb2e51b67390d49747b43ad3a.zip |
dev-python/pysimdjson: Bump to 5.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pysimdjson/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pysimdjson/pysimdjson-5.0.1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/pysimdjson/Manifest b/dev-python/pysimdjson/Manifest index b08669c08034..88e725e6c218 100644 --- a/dev-python/pysimdjson/Manifest +++ b/dev-python/pysimdjson/Manifest @@ -1 +1,2 @@ DIST pysimdjson-4.0.3.gh.tar.gz 3783913 BLAKE2B 74c186e87540c4806ec311e7a6ca05bf28b2a2060ba078919c68d92812a1bc34efd9f0deb30b85dba134af9ce99dbfa2b8fa33c1b14926915e284f262a7ac4f1 SHA512 eb2cd8b96eed8985674fbcfeafc21b58c9985c46c7f46b72ee78fbf91ef659acd5139fa56c251bae22418007b3da6ff7e5cdd2d28b2ba22cf19771f2f74880e3 +DIST pysimdjson-5.0.1.gh.tar.gz 3827732 BLAKE2B e42d3fd2ef857ab7c22a5afa6abc3313ff1ea0aabc8a6e8213df3eaef65eb3df501bbcdba2d0de501fdec310aba00c110a30814d548255401fa0b51ca7ee03d4 SHA512 4ace2feca976afdf113b92dd263918f88f7be32156ab6f3b6fe4b798d83bb7c66029bdd7e63fb1bb3bf6568e85b14ad227934114fa7e0da0961888cdfdca8943 diff --git a/dev-python/pysimdjson/pysimdjson-5.0.1.ebuild b/dev-python/pysimdjson/pysimdjson-5.0.1.ebuild new file mode 100644 index 000000000000..16140f582754 --- /dev/null +++ b/dev-python/pysimdjson/pysimdjson-5.0.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for simdjson" +HOMEPAGE=" + https://github.com/TkTech/pysimdjson/ + https://pypi.org/project/pysimdjson/ +" +SRC_URI=" + https://github.com/TkTech/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + >=dev-libs/simdjson-2.0.1:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # benchmarks aren't run + sed -i -e 's:pytest-benchmark:: ; /license_file/ d' setup.cfg || die + # force regen + rm simdjson/csimdjson.cpp || die + # unbundle + > simdjson/simdjson.cpp || die + echo "#include_next <simdjson.h>" > simdjson/simdjson.h || die + + distutils-r1_src_prepare + + export BUILD_WITH_CYTHON=1 +} + +python_compile() { + distutils-r1_python_compile --libraries simdjson +} |