git: cce58f536a18 - main - science/py-scipy-stubs: New port: Type annotations for SciPy
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 05:20:27 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cce58f536a18f272c3a4f7fac6e489badc01db3e
commit cce58f536a18f272c3a4f7fac6e489badc01db3e
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 01:20:34 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 05:20:15 +0000
science/py-scipy-stubs: New port: Type annotations for SciPy
---
science/Makefile | 1 +
science/py-scipy-stubs/Makefile | 26 ++++++++++++++++++++++++++
science/py-scipy-stubs/distinfo | 3 +++
science/py-scipy-stubs/pkg-descr | 4 ++++
4 files changed, 34 insertions(+)
diff --git a/science/Makefile b/science/Makefile
index eccba75fb10f..480a021e5922 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -453,6 +453,7 @@
SUBDIR += py-scikit-sparse
SUBDIR += py-scimath
SUBDIR += py-scipy
+ SUBDIR += py-scipy-stubs
SUBDIR += py-scoria
SUBDIR += py-sdf
SUBDIR += py-seekpath
diff --git a/science/py-scipy-stubs/Makefile b/science/py-scipy-stubs/Makefile
new file mode 100644
index 000000000000..34f66a90d4a9
--- /dev/null
+++ b/science/py-scipy-stubs/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= scipy-stubs
+DISTVERSION= 1.18.0.0
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Type annotations for SciPy
+WWW= https://scipy.org/ \
+ https://github.com/scipy/scipy-stubs
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}uv-build>=0.11.22:devel/py-uv-build@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}optype>=0.14.0:devel/py-optype@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+NO_ARCH= yes
+
+post-extract:
+ @${REINPLACE_CMD} -e 's/^license = "\([^"]*\)"/license = {text = "\1"}/' -e '/^license-files/d' ${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/science/py-scipy-stubs/distinfo b/science/py-scipy-stubs/distinfo
new file mode 100644
index 000000000000..a62f97d27228
--- /dev/null
+++ b/science/py-scipy-stubs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783067583
+SHA256 (scipy_stubs-1.18.0.0.tar.gz) = a1fc917da66e4d338998839170e218754a669f6455c24243890a1e572bde98f6
+SIZE (scipy_stubs-1.18.0.0.tar.gz) = 402538
diff --git a/science/py-scipy-stubs/pkg-descr b/science/py-scipy-stubs/pkg-descr
new file mode 100644
index 000000000000..1c60b7557cd4
--- /dev/null
+++ b/science/py-scipy-stubs/pkg-descr
@@ -0,0 +1,4 @@
+SciPy Stubs provides type annotations (stub files) for the SciPy
+scientific computing library. These stubs enable static type checkers
+like mypy and pyright to validate code that uses SciPy, improving code
+quality and IDE support for scientific Python applications.