diff --git a/srcpkgs/python3-pywt/patches/relax-numpy-version.patch b/srcpkgs/python3-pywt/patches/relax-numpy-version.patch new file mode 100644 index 00000000000..c94bb44a14c --- /dev/null +++ b/srcpkgs/python3-pywt/patches/relax-numpy-version.patch @@ -0,0 +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. diff --git a/srcpkgs/python3-pywt/template b/srcpkgs/python3-pywt/template index 902ea8d2592..4f636bd77aa 100644 --- a/srcpkgs/python3-pywt/template +++ b/srcpkgs/python3-pywt/template @@ -1,10 +1,11 @@ # Template file for 'python3-pywt' pkgname=python3-pywt -version=1.4.1 -revision=3 -build_style=python3-module -build_helper="numpy" -hostmakedepends="python3-setuptools python3-Cython" +version=1.5.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" checkdepends="python3-pytest $depends" @@ -13,11 +14,7 @@ maintainer="Andrew J. Hesford " license="MIT" homepage="https://github.com/PyWavelets/pywt" distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=b1d0edca28998d35ec1bbc31f009b334a98b475f67b1c84f7521eb689a8607f8 - -do_check() { - (cd build/lib* && python3 -m pytest pywt/tests) -} +checksum=5aedfa9bd629f104a04fda88b92582bda38ab22282ce5048b5760b5d18e83fc9 post_install() { vlicense LICENSE