git: 6913450629c4 - main - science/py-h5netcdf: New port: netCDF4 via h5py

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 08 Mar 2025 11:15:51 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6913450629c4ab427903d6b1a25bc6e8915e67a0

commit 6913450629c4ab427903d6b1a25bc6e8915e67a0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-08 10:55:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-08 11:15:44 +0000

    science/py-h5netcdf: New port: netCDF4 via h5py
---
 science/Makefile              |  1 +
 science/py-h5netcdf/Makefile  | 28 ++++++++++++++++++++++++++++
 science/py-h5netcdf/distinfo  |  3 +++
 science/py-h5netcdf/pkg-descr |  3 +++
 4 files changed, 35 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 68d692c7ae04..ae3b09cb79e2 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -349,6 +349,7 @@
     SUBDIR += py-gpaw
     SUBDIR += py-gsd
     SUBDIR += py-h5json
+    SUBDIR += py-h5netcdf
     SUBDIR += py-h5py
     SUBDIR += py-h5pyd
     SUBDIR += py-hiphive
diff --git a/science/py-h5netcdf/Makefile b/science/py-h5netcdf/Makefile
new file mode 100644
index 000000000000..b80fb2270fbf
--- /dev/null
+++ b/science/py-h5netcdf/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	h5netcdf
+DISTVERSION=	1.6.1
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	netCDF4 via h5py
+WWW=		https://h5netcdf.org \
+		https://github.com/h5netcdf/h5netcdf
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
+
+USES=		python shebangfix
+USE_PYTHON=	pep517 concurrent autoplist pytest
+
+NO_ARCH=	yes
+
+# tests as of 1.6.1: 101 passed, 54 skipped in 7.45s
+
+.include <bsd.port.mk>
diff --git a/science/py-h5netcdf/distinfo b/science/py-h5netcdf/distinfo
new file mode 100644
index 000000000000..911d674b6a4e
--- /dev/null
+++ b/science/py-h5netcdf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1741431003
+SHA256 (h5netcdf-1.6.1.tar.gz) = 7ef4ecd811374d94d29ac5e7f7db71ff59b55ef8eeefbe4ccc2c316853d31894
+SIZE (h5netcdf-1.6.1.tar.gz) = 64456
diff --git a/science/py-h5netcdf/pkg-descr b/science/py-h5netcdf/pkg-descr
new file mode 100644
index 000000000000..844e4710063e
--- /dev/null
+++ b/science/py-h5netcdf/pkg-descr
@@ -0,0 +1,3 @@
+h5netcdf is an open source project and Python package that provides an interface
+for the netCDF4 file-format that reads and writes local or remote HDF5 files
+directly via h5py or h5pyd, without relying on the Unidata netCDF library.