aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-06-23 06:37:19 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-06-23 08:27:08 +0000
commit2cbb7350d4b764469ad42d25861349fb98726493 (patch)
treef0ba9a494544340d427edd7e480223591e317d62
parent1ac7f193d3e6310af2fea870f6a5caa5fb2e7ebd (diff)
math/py-numba-stats: New port: Numba-accelerated implementations of common probability distributions
-rw-r--r--math/Makefile1
-rw-r--r--math/py-numba-stats/Makefile28
-rw-r--r--math/py-numba-stats/distinfo3
-rw-r--r--math/py-numba-stats/pkg-descr16
4 files changed, 48 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 2a8a9876fcb0..b3164d9ea4a9 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -978,6 +978,7 @@
SUBDIR += py-networkx
SUBDIR += py-nevergrad
SUBDIR += py-nlopt
+ SUBDIR += py-numba-stats
SUBDIR += py-numdifftools
SUBDIR += py-numexpr
SUBDIR += py-numpoly
diff --git a/math/py-numba-stats/Makefile b/math/py-numba-stats/Makefile
new file mode 100644
index 000000000000..90b37d9c162b
--- /dev/null
+++ b/math/py-numba-stats/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= numba-stats
+PORTVERSION= 1.2.0
+CATEGORIES= math python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Numba-accelerated implementations of common probability distributions
+WWW= https://github.com/HDembinski/numba-stats
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest # several tests fail, see https://github.com/HDembinski/numba-stats/issues/74
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+BINARY_ALIAS= python=${PYTHON_CMD} # for tests
+
+.include <bsd.port.mk>
diff --git a/math/py-numba-stats/distinfo b/math/py-numba-stats/distinfo
new file mode 100644
index 000000000000..59e373cdebbd
--- /dev/null
+++ b/math/py-numba-stats/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1687500930
+SHA256 (numba-stats-1.2.0.tar.gz) = 0a335f943121dce707ce827098d3062d28b98cc4e4d8cb1f7fe29f76a26f0431
+SIZE (numba-stats-1.2.0.tar.gz) = 207230
diff --git a/math/py-numba-stats/pkg-descr b/math/py-numba-stats/pkg-descr
new file mode 100644
index 000000000000..b8a018955d5e
--- /dev/null
+++ b/math/py-numba-stats/pkg-descr
@@ -0,0 +1,16 @@
+numba-stats provides numba-accelerated implementations of statistical functions
+for common probability distributions.
+
+* Uniform
+* (Truncated) Normal
+* Log-normal
+* Poisson
+* (Truncated) Exponential
+* Student's t
+* Voigtian
+* Crystal Ball
+* Generalised double-sided Crystal Ball
+* Tsallis-Hagedorn, a model for the minimum bias pT distribution
+* Q-Gaussian
+* Bernstein density
+* Cruijff density