commit:     856bbb9fb0eac3297242081a2f048665fe56faf3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 21 05:23:06 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 21 05:38:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=856bbb9f

dev-python/pysimdjson: Bump to 7.0.1

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

 dev-python/pysimdjson/Manifest                |  1 +
 dev-python/pysimdjson/pysimdjson-7.0.1.ebuild | 54 +++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/dev-python/pysimdjson/Manifest b/dev-python/pysimdjson/Manifest
index a9afec46d0a2..20f6fb4cb33d 100644
--- a/dev-python/pysimdjson/Manifest
+++ b/dev-python/pysimdjson/Manifest
@@ -1 +1,2 @@
 DIST pysimdjson-7.0.0.gh.tar.gz 4670589 BLAKE2B 
d7bab62a075228d462413e139f4760bfacbe2add4f2cdc26f84b072a7c792e62f3d494053bbb0529d80e3ddc9c67df25ece3f6ccf120d05644bda5b006afc839
 SHA512 
9d2491885694091b3a37f52c6dba44060c3dff05231056dd5af1720e3593a2047e6e4837f4129d347ff80c9bd65fc0d4cacc93fdd6e3e1088faa97eb90196fec
+DIST pysimdjson-7.0.1.gh.tar.gz 4670593 BLAKE2B 
b41a978769b0c5ce7da87908566a6d42ec3fdd3251fcc9847e6902a80eae2e28cb3fc45f517c447b90fb03e4c741aa44f2deb1d2e5d3c7ceb27fea8e57379b3f
 SHA512 
94b6e972200ee773b87918639203fac8f573b44d2d7b7e1cf896d216b269a8153a586e2312d1b01ef21b86a54368bfd56131f48c7d1b7fd9f46248318892b0b5

diff --git a/dev-python/pysimdjson/pysimdjson-7.0.1.ebuild 
b/dev-python/pysimdjson/pysimdjson-7.0.1.ebuild
new file mode 100644
index 000000000000..40b93da20a89
--- /dev/null
+++ b/dev-python/pysimdjson/pysimdjson-7.0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2020-2025 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_{11..14} )
+
+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/pysimdjson/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:=
+       test? ( dev-libs/simdjson[all-impls(-)] )
+"
+RDEPEND="
+       ${DEPEND}
+"
+BDEPEND="
+       dev-python/cython[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # unbundle
+       local PATCHES=(
+               "${FILESDIR}/pysimdjson-7.0.0-system-lib.patch"
+       )
+
+       rm simdjson/simdjson.cpp || die
+       echo "#include_next <simdjson.h>" > simdjson/simdjson.h || die
+
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -o required_plugins=
+}

Reply via email to