summaryrefslogtreecommitdiff
path: root/science/py-pynrrd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-pynrrd/Makefile')
-rw-r--r--science/py-pynrrd/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/science/py-pynrrd/Makefile b/science/py-pynrrd/Makefile
new file mode 100644
index 000000000000..11058c29480c
--- /dev/null
+++ b/science/py-pynrrd/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= pynrrd
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.1.3
+CATEGORIES= science python
+#MASTER_SITES= PYPI # no tests
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pure Python module for reading and writing NRRD files
+WWW= https://pynrrd.readthedocs.io/en/stable/ \
+ https://github.com/mhe/pynrrd
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= mhe
+
+NO_ARCH= yes
+
+# tests as of 1.1.3: 159 passed in 3.03s
+
+.include <bsd.port.mk>