aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew J. Hesford <ajh@sideband.org>2024-04-03 15:14:55 +0000
committerAndrew J. Hesford <ajh@sideband.org>2024-04-03 17:25:33 +0000
commit878c94a13328831e57570b43c1daedcdc014d16e (patch)
tree69bfc5c329e2fb75243535c6636e069c83266c5c
parent8f309cc6231f40ac8ae8618e1ee2c07c48913f4a (diff)
downloadvoid-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar.gz
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar.bz2
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar.lz
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar.xz
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.tar.zst
void-packages-878c94a13328831e57570b43c1daedcdc014d16e.zip
python3-pywt: update to 1.6.0.
-rw-r--r--srcpkgs/python3-pywt/patches/relax-numpy-version.patch22
-rw-r--r--srcpkgs/python3-pywt/template14
2 files changed, 22 insertions, 14 deletions
diff --git a/srcpkgs/python3-pywt/patches/relax-numpy-version.patch b/srcpkgs/python3-pywt/patches/relax-numpy-version.patch
index c94bb44a14c..0e2b4d93bbe 100644
--- a/srcpkgs/python3-pywt/patches/relax-numpy-version.patch
+++ b/srcpkgs/python3-pywt/patches/relax-numpy-version.patch
@@ -1,11 +1,11 @@
---- ./pyproject.toml.orig 2023-11-20 08:16:21.192898967 -0500
-+++ ./pyproject.toml 2023-11-20 08:16:32.003923501 -0500
-@@ -18,7 +18,7 @@
- # default numpy requirements
- "numpy==1.22.4; python_version<='3.10' and platform_python_implementation != 'PyPy'",
- "numpy==1.23.3; python_version=='3.11' and platform_python_implementation != 'PyPy'",
-- "numpy==1.26.0; python_version=='3.12' and platform_python_implementation != 'PyPy'",
-+ "numpy>=1.26.0; python_version=='3.12' and platform_python_implementation != 'PyPy'",
- # For Python versions which aren't yet officially supported, we specify an
- # unpinned NumPy which allows source distributions to be used and allows
- # wheels to be used as soon as they become available.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -19,7 +19,7 @@
+ # Note that building against numpy 1.x works fine too - users and
+ # redistributors can do this by installing the numpy version they like and
+ # disabling build isolation.
+- "numpy>=2.0.0rc1,<2.3",
++ "numpy",
+ ]
+
+ [project]
diff --git a/srcpkgs/python3-pywt/template b/srcpkgs/python3-pywt/template
index 4f636bd77aa..2facec5491f 100644
--- a/srcpkgs/python3-pywt/template
+++ b/srcpkgs/python3-pywt/template
@@ -1,10 +1,9 @@
# Template file for 'python3-pywt'
pkgname=python3-pywt
-version=1.5.0
+version=1.6.0
revision=1
build_style=python3-pep517
build_helper="meson numpy"
-make_check_target="pywt/tests"
hostmakedepends="python3-meson-python python3-Cython"
makedepends="python3-devel"
depends="python3-numpy"
@@ -14,7 +13,16 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://github.com/PyWavelets/pywt"
distfiles="${homepage}/archive/v${version}.tar.gz"
-checksum=5aedfa9bd629f104a04fda88b92582bda38ab22282ce5048b5760b5d18e83fc9
+checksum=8f2cbc64ee8142bf069447bf26bc3ff0f5e332a18062c6ca0ea033f20a4fb995
+
+do_check() {
+ local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
+ python3 -m installer --destdir "${testdir}" dist/*.whl
+
+ # Relative imports in tests preclude running from source tree
+ local pysite="${testdir}/${py3_sitelib}"
+ PYTHONPATH="${pysite}" pytest3 "${pysite}/pywt/tests"
+}
post_install() {
vlicense LICENSE