git: dcd616aa2622 - main - science/py-pyscf: update 2.12.1 → 2.14.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 19 Sep 2026 22:42:59 UTC
The branch main has been updated by yuri:

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

commit dcd616aa2622763efc33ddd9840322e63fe6ccac
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-19 20:04:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-19 22:42:23 +0000

    science/py-pyscf: update 2.12.1 → 2.14.0
---
 science/py-pyscf/Makefile               | 37 ++++++++++++++++++++-------------
 science/py-pyscf/distinfo               |  6 +++---
 science/py-pyscf/files/sitecustomize.py |  1 +
 3 files changed, 26 insertions(+), 18 deletions(-)

diff --git a/science/py-pyscf/Makefile b/science/py-pyscf/Makefile
index 6c4f899bafa0..aa54c3fb4f0e 100644
--- a/science/py-pyscf/Makefile
+++ b/science/py-pyscf/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	pyscf
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.12.1
-PORTREVISION=	2
+DISTVERSION=	2.14.0
 CATEGORIES=	science python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -10,30 +9,38 @@ COMMENT=	Python module for quantum chemistry
 WWW=		https://pyscf.org/ \
 		https://github.com/pyscf/pyscf
 
-LICENSE=	BSD2CLAUSE
+LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}h5py>=2.7:science/py-h5py@${PY_FLAVOR}
-BUILD_DEPENDS=	${PY_DEPENDS} \
-		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
-		cmake:devel/cmake-core \
-		gmake:devel/gmake
+BUILD_DEPENDS=	cmake:devel/cmake-core \
+		${PYTHON_PKGNAMEPREFIX}h5py>=2.7:science/py-h5py@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.13:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.6.0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libcint.so:science/libcint \
 		libxc.so:science/libxc \
 		libxcfun.so:science/xcfun
-RUN_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}h5py>=2.7:science/py-h5py@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.13:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.6.0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
 
-USES=		fortran blaslapack:openblas compiler:c++11-lang python
+USES=		fortran blaslapack:openblas compiler:c++11-lang gmake python
 USE_PYTHON=	distutils autoplist pytest
 USE_GITHUB=	yes
 
 POST_PLIST=	fix-plist
 
-TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ENV=	${MAKE_ENV} \
+		LD_LIBRARY_PATH= \
+		PYTHONPATH=${FILESDIR}:${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 TEST_WRKSRC=	${WRKSRC}/pyscf
-TEST_ARGS=	-c ${WRKSRC}/setup.cfg
+TEST_ARGS=	--disable-plugin-autoload \
+		--ignore=lib/vhf/test/test_nr_direct.py \
+		--ignore=mcpdft/test/test_otfnal.py \
+		--ignore=mcpdft/test/test_otpd.py \
+		-c ${WRKSRC}/pytest.ini
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyscf/lib/lib*.so
@@ -45,6 +52,6 @@ post-test:
 	@${ECHO} "==> simple test ..."
 	@${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py
 
-# tests fail to run: https://github.com/pyscf/pyscf/issues/2601
+# tests currently fail under the local aarch64 harness: pytest exits 255 with repeated "Too many args to microtask: 17!" during adc tests
 
 .include <bsd.port.mk>
diff --git a/science/py-pyscf/distinfo b/science/py-pyscf/distinfo
index 4d4ac3d4d074..a36bb64f900f 100644
--- a/science/py-pyscf/distinfo
+++ b/science/py-pyscf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1776702264
-SHA256 (pyscf-pyscf-v2.12.1_GH0.tar.gz) = 4c07315f3ca64e368f2228f22c3eb7d603e1317c2c4d73fc6637bb023f849933
-SIZE (pyscf-pyscf-v2.12.1_GH0.tar.gz) = 11898369
+TIMESTAMP = 1789678601
+SHA256 (pyscf-pyscf-v2.14.0_GH0.tar.gz) = 03c2e84ea8ce37ea1e029d219e57977a21df16c4e5ab2208389819e045c10939
+SIZE (pyscf-pyscf-v2.14.0_GH0.tar.gz) = 12994077
diff --git a/science/py-pyscf/files/sitecustomize.py b/science/py-pyscf/files/sitecustomize.py
new file mode 100644
index 000000000000..8e643d30b99f
--- /dev/null
+++ b/science/py-pyscf/files/sitecustomize.py
@@ -0,0 +1 @@
+import ctypes