git: 2cbb7350d4b7 - main - math/py-numba-stats: New port: Numba-accelerated implementations of common probability distributions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Jun 2023 08:27:15 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2cbb7350d4b764469ad42d25861349fb98726493
commit 2cbb7350d4b764469ad42d25861349fb98726493
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-23 06:37:19 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-23 08:27:08 +0000
math/py-numba-stats: New port: Numba-accelerated implementations of common probability distributions
---
math/Makefile | 1 +
math/py-numba-stats/Makefile | 28 ++++++++++++++++++++++++++++
math/py-numba-stats/distinfo | 3 +++
math/py-numba-stats/pkg-descr | 16 ++++++++++++++++
4 files changed, 48 insertions(+)
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