git: b2d98d3dfdbc - main - science/py-endf: New port: Python interface to ENDF-6 and ACE format nuclear data files

Yuri Victorovich <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

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

commit b2d98d3dfdbc73cc3eaab37688ded46f623d0efb
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-07 03:25:07 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-07 05:09:29 +0000

    science/py-endf: New port: Python interface to ENDF-6 and ACE format nuclear data files
---
 science/Makefile                           |  1 +
 science/py-endf/Makefile                   | 31 ++++++++++++++++++++++++++++++
 science/py-endf/distinfo                   |  3 +++
 science/py-endf/files/patch-pyproject.toml | 11 +++++++++++
 science/py-endf/pkg-descr                  |  3 +++
 5 files changed, 49 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 232a56b57b17..ef2f84e5c9ed 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -345,6 +345,7 @@
     SUBDIR += py-earthpy
     SUBDIR += py-eccodes
     SUBDIR += py-emmet-core
+    SUBDIR += py-endf
     SUBDIR += py-esda
     SUBDIR += py-fresnel
     SUBDIR += py-gemmi
diff --git a/science/py-endf/Makefile b/science/py-endf/Makefile
new file mode 100644
index 000000000000..04b34983d8d2
--- /dev/null
+++ b/science/py-endf/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	endf
+DISTVERSION=	0.1.12
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	[email protected]
+COMMENT=	Python interface to ENDF-6 and ACE format nuclear data files
+WWW=		https://endf-python.readthedocs.io/en/latest/ \
+		https://github.com/paulromano/endf-python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pybind11>=2.10.0:devel/py-pybind11@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.0:devel/py-setuptools-scm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}uncertainties>0:math/py-uncertainties@${PY_FLAVOR}
+
+USES=		python:3.10+
+USE_PYTHON=	pep517 autoplist pytest concurrent
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+MAKE_ENV+=	SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
+
+# tests as of 0.1.12: 16 passed in 0.58s
+
+.include <bsd.port.mk>
diff --git a/science/py-endf/distinfo b/science/py-endf/distinfo
new file mode 100644
index 000000000000..89e493cec3ba
--- /dev/null
+++ b/science/py-endf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1786056967
+SHA256 (endf-0.1.12.tar.gz) = 97ca1b7a248fcc26c58a9f6a825e48b6643c8a6e111733440ada0ae425d45a68
+SIZE (endf-0.1.12.tar.gz) = 79947
diff --git a/science/py-endf/files/patch-pyproject.toml b/science/py-endf/files/patch-pyproject.toml
new file mode 100644
index 000000000000..8a01f983ec7f
--- /dev/null
+++ b/science/py-endf/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2026-02-12 12:52:39 UTC
++++ pyproject.toml
+@@ -8,7 +8,7 @@ authors = [
+ authors = [
+     { name = "Paul Romano", email = "[email protected]" },
+ ]
+-license = "MIT"
++license = {text = "MIT"}
+ description = "Python interface to ENDF-6 files"
+ readme = "README.md"
+ classifiers = [
diff --git a/science/py-endf/pkg-descr b/science/py-endf/pkg-descr
new file mode 100644
index 000000000000..f549f2f6e63a
--- /dev/null
+++ b/science/py-endf/pkg-descr
@@ -0,0 +1,3 @@
+The endf package provides a Python interface to ENDF-6 formatted nuclear
+data files. It can read files in ENDF-6 format and extract data for any
+material, file, and section.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.