git: d2fcb69f6810 - main - math/py-numdifftools: New port: Solve automatic numerical differentiation problems in 1+ variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Aug 2022 04:17:38 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d2fcb69f68107f4c9b0e5e48ae5946b3fd0cbc4d commit d2fcb69f68107f4c9b0e5e48ae5946b3fd0cbc4d Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-08-10 03:17:52 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-08-10 04:17:31 +0000 math/py-numdifftools: New port: Solve automatic numerical differentiation problems in 1+ variables --- math/Makefile | 1 + math/py-numdifftools/Makefile | 31 +++++++++++++++++++++++++++++++ math/py-numdifftools/distinfo | 3 +++ math/py-numdifftools/pkg-descr | 9 +++++++++ 4 files changed, 44 insertions(+) diff --git a/math/Makefile b/math/Makefile index 9afe7013d7ac..b43af9ed126c 100644 --- a/math/Makefile +++ b/math/Makefile @@ -908,6 +908,7 @@ SUBDIR += py-networkx SUBDIR += py-nevergrad SUBDIR += py-nlopt + SUBDIR += py-numdifftools SUBDIR += py-numexpr SUBDIR += py-numpoly SUBDIR += py-numpy diff --git a/math/py-numdifftools/Makefile b/math/py-numdifftools/Makefile new file mode 100644 index 000000000000..812c8c61bdd9 --- /dev/null +++ b/math/py-numdifftools/Makefile @@ -0,0 +1,31 @@ +PORTNAME= numdifftools +DISTVERSION= 0.9.40 +CATEGORIES= math +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Solve automatic numerical differentiation problems in 1+ variables + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}algopy>=0.4:math/py-algopy@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=0.8:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}statsmodels>0:math/py-statsmodels@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \ + ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>=3.56:devel/py-hypothesis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}line-profiler>0:devel/py-line-profiler@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-pep8>0:devel/py-pytest-pep8@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist pytest # test dependencies fail to install due to inter-package conflicts + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/math/py-numdifftools/distinfo b/math/py-numdifftools/distinfo new file mode 100644 index 000000000000..b484e3fadc9f --- /dev/null +++ b/math/py-numdifftools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660084948 +SHA256 (numdifftools-0.9.40.tar.gz) = 940692fd795e47083fad481d93c432b7fa9378758b5681dfc73a65152abfcd57 +SIZE (numdifftools-0.9.40.tar.gz) = 6615752 diff --git a/math/py-numdifftools/pkg-descr b/math/py-numdifftools/pkg-descr new file mode 100644 index 000000000000..fce906de3be7 --- /dev/null +++ b/math/py-numdifftools/pkg-descr @@ -0,0 +1,9 @@ +The numdifftools library is a suite of tools written in _Python to solve +automatic numerical differentiation problems in one or more variables. Finite +differences are used in an adaptive manner, coupled with a Richardson +extrapolation methodology to provide a maximally accurate result. The user can +configure many options like; changing the order of the method or the +extrapolation, even allowing the user to specify whether complex-step, central, +forward or backward differences are used. + +WWW: https://github.com/pbrod/numdifftools