git: 73fca4866c29 - main - science/py-pynrrd: New port: Pure Python module for reading and writing NRRD files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Oct 2025 08:29:40 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=73fca4866c29aca3f15c58dfff374377a9c7b6fe
commit 73fca4866c29aca3f15c58dfff374377a9c7b6fe
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-04 08:12:25 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-06 08:25:50 +0000
science/py-pynrrd: New port: Pure Python module for reading and writing NRRD files
---
science/Makefile | 1 +
science/py-pynrrd/Makefile | 31 +++++++++++++++++++++++++++++++
science/py-pynrrd/distinfo | 3 +++
science/py-pynrrd/pkg-descr | 4 ++++
4 files changed, 39 insertions(+)
diff --git a/science/Makefile b/science/Makefile
index 473bc4b3c78d..9713030b534d 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -410,6 +410,7 @@
SUBDIR += py-pymatgen-analysis-alloys
SUBDIR += py-pymbd
SUBDIR += py-pymol
+ SUBDIR += py-pynrrd
SUBDIR += py-pyosf
SUBDIR += py-pyphot
SUBDIR += py-pyprecice
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>
diff --git a/science/py-pynrrd/distinfo b/science/py-pynrrd/distinfo
new file mode 100644
index 000000000000..fc154510a78b
--- /dev/null
+++ b/science/py-pynrrd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759736084
+SHA256 (mhe-pynrrd-v1.1.3_GH0.tar.gz) = 10ce743d69ecf54b41ecab56b74dc8a5f806d299c45fcc1ef07d7d8aef5949ea
+SIZE (mhe-pynrrd-v1.1.3_GH0.tar.gz) = 47813
diff --git a/science/py-pynrrd/pkg-descr b/science/py-pynrrd/pkg-descr
new file mode 100644
index 000000000000..2f8cf8ad7e91
--- /dev/null
+++ b/science/py-pynrrd/pkg-descr
@@ -0,0 +1,4 @@
+NRRD (Nearly Raw Raster Data) is a library and file format designed to
+support scientific visualization and image processing involving N-dimensional
+raster data. This library provides the ability to read and write NRRD files
+using pure Python.