summaryrefslogtreecommitdiff
path: root/math/py-pywavelets
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2024-08-28 17:48:22 +0300
committerMax Brazhnikov <makc@FreeBSD.org>2024-08-28 17:48:22 +0300
commitdc6d24aeda3492b9497becd979ae50d1dc466a4c (patch)
tree480ec5eed4b903689f856fe888df4b4d6f4f076b /math/py-pywavelets
parentdevel/rust-analyzer: Update to 2024-08-27 (diff)
math/py-PyWavelets: rename to pywavelets and update to 1.5.0
Update to 1.5.0. The package has been renamed to pywavelets starting with 1.5.0
Diffstat (limited to 'math/py-pywavelets')
-rw-r--r--math/py-pywavelets/Makefile26
-rw-r--r--math/py-pywavelets/distinfo3
-rw-r--r--math/py-pywavelets/files/patch-pyproject.toml25
-rw-r--r--math/py-pywavelets/pkg-descr5
4 files changed, 59 insertions, 0 deletions
diff --git a/math/py-pywavelets/Makefile b/math/py-pywavelets/Makefile
new file mode 100644
index 000000000000..ffa61adc5563
--- /dev/null
+++ b/math/py-pywavelets/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= pywavelets
+PORTVERSION= 1.5.0
+CATEGORIES= math python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= makc@FreeBSD.org
+COMMENT= Discrete Wavelet Transforms in Python
+WWW= https://github.com/PyWavelets/pywt
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}meson-python>=0.14:devel/meson-python@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python shebangfix
+USE_PYTHON= autoplist cython pep517
+
+SHEBANG_FILES= pywt/data/create_dat.py
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pywt/_extensions/*.so
+
+.include <bsd.port.mk>
diff --git a/math/py-pywavelets/distinfo b/math/py-pywavelets/distinfo
new file mode 100644
index 000000000000..9134427f823f
--- /dev/null
+++ b/math/py-pywavelets/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724847432
+SHA256 (pywavelets-1.5.0.tar.gz) = d9e25c7cabef7ccd53f5fead26ab22152fe4cb937bad7411b5d506e2b5de38f6
+SIZE (pywavelets-1.5.0.tar.gz) = 3937269
diff --git a/math/py-pywavelets/files/patch-pyproject.toml b/math/py-pywavelets/files/patch-pyproject.toml
new file mode 100644
index 000000000000..4f363283cd58
--- /dev/null
+++ b/math/py-pywavelets/files/patch-pyproject.toml
@@ -0,0 +1,25 @@
+--- pyproject.toml.orig 2023-11-17 22:07:21 UTC
++++ pyproject.toml
+@@ -9,21 +9,7 @@ requires = [
+ requires = [
+ "meson-python>=0.14.0",
+ "Cython>=0.29.35",
+-
+- # When numpy 2.0.0rc1 comes out, we should update this to build against 2.0,
+- # and then runtime depend on the range 1.22.X to <2.3. No need to switch to
+- # 1.25.2 in the meantime (1.25.x is the first version which exports older C
+- # API versions by default).
+-
+- # 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'",
+- # 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.
+- "numpy; python_version>='3.13'",
+- "numpy; python_version>='3.9' and platform_python_implementation=='PyPy'",
++ "numpy",
+ ]
+
+ [project]
diff --git a/math/py-pywavelets/pkg-descr b/math/py-pywavelets/pkg-descr
new file mode 100644
index 000000000000..99847a6ec1ba
--- /dev/null
+++ b/math/py-pywavelets/pkg-descr
@@ -0,0 +1,5 @@
+PyWavelets is a free Open Source library for wavelet transforms in Python.
+Wavelets are mathematical basis functions that are localized in both time and
+frequency. Wavelet transforms are time-frequency transforms employing wavelets.
+They are similar to Fourier transforms, the difference being that Fourier
+transforms are localized only in frequency instead of in time and frequency.