diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-09 10:33:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-09 10:33:02 +0100 |
commit | 6440e1dd038e7df4f9df7dd5127d3b1c6f39034e (patch) | |
tree | 122c8899fbcce481ff7c1deb35c872f0236affa9 /dev-python/jq | |
parent | e7bc5cacb1abeb6806d255e2a817ab4dcb5f52b8 (diff) |
gentoo auto-resync : 09:09:2023 - 10:33:01
Diffstat (limited to 'dev-python/jq')
-rw-r--r-- | dev-python/jq/Manifest | 2 | ||||
-rw-r--r-- | dev-python/jq/files/jq-1.5.0-cython3.patch | 20 | ||||
-rw-r--r-- | dev-python/jq/jq-1.5.0-r1.ebuild | 44 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/jq/Manifest b/dev-python/jq/Manifest index f24f8d932e3e..8de1aa42b7cb 100644 --- a/dev-python/jq/Manifest +++ b/dev-python/jq/Manifest @@ -1,5 +1,7 @@ +AUX jq-1.5.0-cython3.patch 752 BLAKE2B ec9bb79fb0ae51791d120c8194fdefbd78faea0e6cff391e35ff223f28932bdfe677c68edadf05648e0f10f0662893761e4d08fcb5fc8518963ef12208e149eb SHA512 2f93667c56e273c93ecd8cad82f031315c5028d29435cf4c3d58e44344035d21faf6f0fbb91f35614b2abedd931b6e440990b8e899a927768765c4280b651f28 DIST jq.py-1.4.1.gh.tar.gz 2648592 BLAKE2B b1413a07ba03f61d3b2e8cfa3f2c646408e24139f76fb9637d23968d953fa78f82b1dd04c355d5a6e6c6761095a4814d8cfd1f012382ca810ad5a44e007c7878 SHA512 03924793e8cab8041b4b2ecb8ef45bafdf31f14b4502170358ddecc027ead7cc17eda37fc04743eeef073e29144d2f7e6c4428e2a92f1bb8aa859100dce4521b DIST jq.py-1.5.0.gh.tar.gz 2649404 BLAKE2B 9dfe8f17e061eaea44de31be17cbb18607dc118d526a652a80e2d69b30fa532f412b9b20b1c72418f4d6904b43126611344b2257bc9cb3441086ef3e8f131a6e SHA512 826771ced7d707111b7bc6d1f7a408944690daa8bfb6ec135627a15c3fcfba95a525b8ee3005f8a6e5d23afbeaacc06ad7464e3c3a0a15cf5582d97121c64248 EBUILD jq-1.4.1.ebuild 810 BLAKE2B 0e0c8737a3c664855b380365e17f4e3576071f0e2c937319a269cfa80a6cfcf82a2578085bc1770e2e98913bdc2c383bfb37102e25484f457d01aa1d3170c045 SHA512 89e838594713de630f260e4dd6db08774ab2101c05749b4eccd0c6f93ef15e04399827e4e47a345d4330b7e825c2a98ff74c4378ecd88686a0bfbc4af0f36a69 +EBUILD jq-1.5.0-r1.ebuild 869 BLAKE2B e3921add0fe770640332e78ab17c5e872eecd8e492de174ddcbcb668ea18344b448e9ead8e72d054a158a9f76c893802c2a26f8a795a3aa1f9770c56195dd07d SHA512 cb3a7845c77bb0ef57b8b918b6f1200795d1e9ef6056bddd575ff960fd38c31d5cece17b8a4476c1a6bec2f31bcae64d887b28e6f614a76214c2905368eccc3a EBUILD jq-1.5.0.ebuild 812 BLAKE2B 598a47ca1c9a48097faba953e144856102e3efbaaeb6adaa1c6974aa1a99f7d9ddfc0d1d926c2989d9993f60db08b91efd6cf9a63cc18d539e98505134f7cd98 SHA512 17e42a1686f8cd8f2fd4c2c6faac51b36158989b9f411283b72af240173ae93f054c6c599901567d2e63ce5ed53cf53a6cd25050f28b0b8ff492474bd2f8bc5e MISC metadata.xml 367 BLAKE2B b17eb2d9c460774d98ba18faf8a09d1c9c711433d0dfcff08df4f769411db66fdb2241d12ebc706664cdef98d9dbeb290614446112f53ecede571f77aa085174 SHA512 399b63613673deaef747fd380d6bdc086a4e4b57c5509b15fd6e031ea613ccf59641c95064fc7dbbf61f8d879fe03faf7e8298e4e8792a8a0b7a2bb3225e77c9 diff --git a/dev-python/jq/files/jq-1.5.0-cython3.patch b/dev-python/jq/files/jq-1.5.0-cython3.patch new file mode 100644 index 000000000000..b4b66b65139c --- /dev/null +++ b/dev-python/jq/files/jq-1.5.0-cython3.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/898684 +https://github.com/mwilliamson/jq.py/commit/c2c7ed1f25b51947ebb690f6b8464c78fe83bb2b + +From c2c7ed1f25b51947ebb690f6b8464c78fe83bb2b Mon Sep 17 00:00:00 2001 +From: Michael Williamson <mike@zwobble.org> +Date: Thu, 31 Aug 2023 23:11:28 +0100 +Subject: [PATCH] Add explicit noexcept to _store_error for Cython 3 + compatibility + +--- a/jq.pyx ++++ b/jq.pyx +@@ -172,7 +172,7 @@ cdef jq_state* _compile(object program_bytes, object args) except NULL: + return jq + + +-cdef void _store_error(void* store_ptr, jv error): ++cdef void _store_error(void* store_ptr, jv error) noexcept: + # TODO: handle errors not of JV_KIND_STRING + cdef _ErrorStore store = <_ErrorStore>store_ptr + if jv_get_kind(error) == JV_KIND_STRING: diff --git a/dev-python/jq/jq-1.5.0-r1.ebuild b/dev-python/jq/jq-1.5.0-r1.ebuild new file mode 100644 index 000000000000..cabe52d95c3b --- /dev/null +++ b/dev-python/jq/jq-1.5.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2021-2023 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..12} ) + +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/ +" +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 ~x86" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${P}-cython3.patch +) + +distutils_enable_tests pytest + +python_compile() { + # TODO: export JQPY_USE_SYSTEM_LIBS=1 on next release + + # 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 +} |