Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2026 20:10:36 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7a6824a20320 - main - math/py-findiff: New port: Finite difference derivatives in any number of dimensions
Message-ID:  <6a72473c.3b5fc.69528123@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit 7a6824a2032074be18800473e4f6ada4d636ae0f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-08-04 06:49:03 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-08-04 20:10:23 +0000

    math/py-findiff: New port: Finite difference derivatives in any number of dimensions
---
 math/Makefile                              |  1 +
 math/py-findiff/Makefile                   | 26 ++++++++++++++++++++++++++
 math/py-findiff/distinfo                   |  3 +++
 math/py-findiff/files/patch-pyproject.toml | 13 +++++++++++++
 math/py-findiff/pkg-descr                  |  4 ++++
 5 files changed, 47 insertions(+)

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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a72473c.3b5fc.69528123>