From 9366b89c768fda2286e5968e8a2448123867e3a5 Mon Sep 17 00:00:00 2001 From: RunningDroid Date: Wed, 10 Jan 2024 17:32:53 -0500 Subject: [PATCH] python3-jq: update to 1.6.0. --- srcpkgs/python3-jq/patches/setup.py.patch | 24 ----------------------- srcpkgs/python3-jq/template | 8 +++++--- 2 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 srcpkgs/python3-jq/patches/setup.py.patch diff --git a/srcpkgs/python3-jq/patches/setup.py.patch b/srcpkgs/python3-jq/patches/setup.py.patch deleted file mode 100644 index 9ccffed6103984..00000000000000 --- a/srcpkgs/python3-jq/patches/setup.py.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/setup.py.orig 2022-09-19 15:51:09 UTC -+++ b/setup.py -@@ -36,8 +36,6 @@ class jq_build_ext(build_ext): - def run(self): - if not os.path.exists(_dep_build_path(".")): - os.makedirs(_dep_build_path(".")) -- self._build_oniguruma() -- self._build_libjq() - build_ext.run(self) - - def _build_oniguruma(self): -@@ -87,11 +85,7 @@ jq_extension = Extension( - "jq", - sources=["jq.c"], - include_dirs=[os.path.join(jq_lib_dir, "src")], -- extra_link_args=["-lm"], -- extra_objects=[ -- os.path.join(jq_lib_dir, ".libs/libjq.a"), -- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"), -- ], -+ extra_link_args=["-lm", "-ljq", "-lonig"], - ) - - setup( diff --git a/srcpkgs/python3-jq/template b/srcpkgs/python3-jq/template index ec16010a72b4f9..8385beff15da63 100644 --- a/srcpkgs/python3-jq/template +++ b/srcpkgs/python3-jq/template @@ -1,7 +1,7 @@ # Template file for 'python3-jq' pkgname=python3-jq -version=1.5.0 -revision=2 +version=1.6.0 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-Cython0.29" makedepends="python3-devel jq-devel oniguruma-devel" @@ -12,7 +12,9 @@ license="BSD-2-Clause" homepage="https://pypi.org/project/jq/" changelog="https://raw.githubusercontent.com/mwilliamson/jq.py/master/CHANGELOG.rst" distfiles="https://github.com/mwilliamson/jq.py/archive/${version}.tar.gz" -checksum=d8ef4b16bc9c48f2d257c419454feb3ba629e2d34a9a288270d4c8aad38b8d83 +checksum=a06131057b4b0794d871c0718e796b23b942b20a19acd4cba13f7cbbb07d0aab + +export JQPY_USE_SYSTEM_LIBS=1 pre_build() { cython -X language_level=3 jq.pyx