diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 01:20:34 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 05:20:15 +0000 |
| commit | cce58f536a18f272c3a4f7fac6e489badc01db3e (patch) | |
| tree | f2581fa5f75fdc5b397adf11f84e6a182055212d | |
| parent | 14a673a130d0fbab11e50e646ba591e7a84fc1e3 (diff) | |
science/py-scipy-stubs: New port: Type annotations for SciPy
| -rw-r--r-- | science/Makefile | 1 | ||||
| -rw-r--r-- | science/py-scipy-stubs/Makefile | 26 | ||||
| -rw-r--r-- | science/py-scipy-stubs/distinfo | 3 | ||||
| -rw-r--r-- | science/py-scipy-stubs/pkg-descr | 4 |
4 files changed, 34 insertions, 0 deletions
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. |
