diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-08-04 06:49:03 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-08-04 20:10:23 +0000 |
| commit | 7a6824a2032074be18800473e4f6ada4d636ae0f (patch) | |
| tree | 0153b26bd493af9bd47686d6dda90f2b1828077b | |
| parent | 91e3cd6efc92a6d2b15a89dab2363c108217f8b0 (diff) | |
math/py-findiff: New port: Finite difference derivatives in any number of dimensions
| -rw-r--r-- | math/Makefile | 1 | ||||
| -rw-r--r-- | math/py-findiff/Makefile | 26 | ||||
| -rw-r--r-- | math/py-findiff/distinfo | 3 | ||||
| -rw-r--r-- | math/py-findiff/files/patch-pyproject.toml | 13 | ||||
| -rw-r--r-- | math/py-findiff/pkg-descr | 4 |
5 files changed, 47 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index f01cc9fb236b..8f3949ffc7f9 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1009,6 +1009,7 @@ SUBDIR += py-fenics-basix SUBDIR += py-fenics-ffcx SUBDIR += py-fenics-ufl + SUBDIR += py-findiff SUBDIR += py-flax SUBDIR += py-formulaic SUBDIR += py-formulaic-contrasts diff --git a/math/py-findiff/Makefile b/math/py-findiff/Makefile new file mode 100644 index 000000000000..8bd0eb66919b --- /dev/null +++ b/math/py-findiff/Makefile @@ -0,0 +1,26 @@ +PORTNAME= findiff +DISTVERSION= 0.13.1 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Finite difference derivatives in any number of dimensions +WWW= https://github.com/maroba/findiff + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist concurrent + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/math/py-findiff/distinfo b/math/py-findiff/distinfo new file mode 100644 index 000000000000..641a7f973618 --- /dev/null +++ b/math/py-findiff/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1785732667 +SHA256 (findiff-0.13.1.tar.gz) = 3aad6eda5e707675310d2c37f69bc1f52751184bb48dc49222e2d4af8aa62eff +SIZE (findiff-0.13.1.tar.gz) = 1603620 diff --git a/math/py-findiff/files/patch-pyproject.toml b/math/py-findiff/files/patch-pyproject.toml new file mode 100644 index 000000000000..26413bb851bd --- /dev/null +++ b/math/py-findiff/files/patch-pyproject.toml @@ -0,0 +1,13 @@ +-- Lower the setuptools build requirement to match the version available in +-- the FreeBSD ports tree. Upstream asks for setuptools>=64, but +-- devel/py-setuptools currently provides 63.1.0. + +--- pyproject.toml.orig 2026-08-03 15:43:55 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"] ++requires = ["setuptools>=63.1.0", "setuptools_scm[toml]>=6.2"] + build-backend = "setuptools.build_meta" + + [project] diff --git a/math/py-findiff/pkg-descr b/math/py-findiff/pkg-descr new file mode 100644 index 000000000000..8bbc54026e51 --- /dev/null +++ b/math/py-findiff/pkg-descr @@ -0,0 +1,4 @@ +Finite difference derivatives in any number of dimensions. + +It supports arbitrary stencil operators and automatic differentiation +helpers for numpy arrays. |
