summaryrefslogtreecommitdiff
path: root/dev-python/jq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-18 12:24:45 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-18 12:24:45 +0100
commit16be64511bd21e32a29645b49e37611507709790 (patch)
treebfb80060e55c09b383ac0257408890c961550171 /dev-python/jq
parent4d6e1311ded368813dc93f130293f64148e22c45 (diff)
gentoo auto-resync : 18:08:2024 - 12:24:44
Diffstat (limited to 'dev-python/jq')
-rw-r--r--dev-python/jq/Manifest2
-rw-r--r--dev-python/jq/jq-1.8.0.ebuild49
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/jq/Manifest b/dev-python/jq/Manifest
index 6af8c5643167..3d48347d60f4 100644
--- a/dev-python/jq/Manifest
+++ b/dev-python/jq/Manifest
@@ -1,3 +1,5 @@
DIST jq.py-1.7.0.gh.tar.gz 1953673 BLAKE2B 861dcb706ef801ff3abb47a6b85fb8aad03988c717a67063d737667ce6853c89dbe10bf61dac517701b8b3e3af6b97d12a15ed03aa0d5a6e6d0d3fa2697e9284 SHA512 918e4537eacf55d0cce888b1946b13acb6d177906d704c99e0b1cc88a55a2929fbeccef7d3fa61daaf0290a97afec581d23a641bdbfc0c700744422135fbcad6
+DIST jq.py-1.8.0.gh.tar.gz 1954418 BLAKE2B e823ab01a7ce42abc542b58bb1f966e6447b85d66c7b72e8b0765a65f6ae510cf5c6045e14c802237360c2108f84428dc9b18a452e1334ba5ee709a4c835e5bd SHA512 83e9a7599518b5281f25954d5fc66de488678ef86982964bc04ae3739d4627220a9ec92570810f9cf235a8e5351284ac430053e6f826ca42f831d837b4750d83
EBUILD jq-1.7.0.ebuild 995 BLAKE2B 5b348a65ffcb1c603e2c979674eb2da989f7bee0ad8018c008a7a7129bb436ae89a24598769cac224d70efe02e882cedca46d1c1c9831290301d7301214c3625 SHA512 3c2086bb7ce736f956bb0dd4d52ea23cff285f320d535548a0f783268ac528b15e49130f14208ac01efb2119240c207c6b4785bf184cc52109bac246acd538ca
+EBUILD jq-1.8.0.ebuild 997 BLAKE2B 13c69bc2f87b0856f97e911b0e22f9cc75b1f97bdc7036d3f758a2b6d863ff9d9e8fa07352eb06cb90f5c5fae4b26d6bf163a126225f3ec2cd5a7ea8736cf580 SHA512 1ad674c8834581d04b88e9015ab5b409673e3f4a7ffa714b6eec74e24e7d7d615b08a7156ca7eb0db9ed141bddca66aa4d88bb285d7d48552d0fcbb469d947f4
MISC metadata.xml 367 BLAKE2B b17eb2d9c460774d98ba18faf8a09d1c9c711433d0dfcff08df4f769411db66fdb2241d12ebc706664cdef98d9dbeb290614446112f53ecede571f77aa085174 SHA512 399b63613673deaef747fd380d6bdc086a4e4b57c5509b15fd6e031ea613ccf59641c95064fc7dbbf61f8d879fe03faf7e8298e4e8792a8a0b7a2bb3225e77c9
diff --git a/dev-python/jq/jq-1.8.0.ebuild b/dev-python/jq/jq-1.8.0.ebuild
new file mode 100644
index 000000000000..d3a413969cd1
--- /dev/null
+++ b/dev-python/jq/jq-1.8.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2021-2024 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_{10..13} )
+
+inherit distutils-r1
+
+MY_P="jq.py-${PV}"
+DESCRIPTION="Python bindings for jq"
+HOMEPAGE="
+ https://github.com/mwilliamson/jq.py/
+ https://pypi.org/project/jq/
+"
+# pypi sdist is missing .pyx
+SRC_URI="
+ https://github.com/mwilliamson/jq.py/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+# Minimum versions of jq + onigurama are from setup.py's bundled versions
+DEPEND="
+ >=app-misc/jq-1.7.1:=
+ >=dev-libs/oniguruma-6.9.8:=
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_compile() {
+ local -x JQPY_USE_SYSTEM_LIBS=1
+
+ # Cython compilation isn't part of setup.py, so do it manually
+ "${EPYTHON}" -m cython -3 jq.pyx -o jq.c || die
+ distutils-r1_python_compile
+}