git: 1ac7f193d3e6 - main - math/py-resample: New port: Resampling-based inference in Python
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Jun 2023 08:27:14 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ac7f193d3e6310af2fea870f6a5caa5fb2e7ebd commit 1ac7f193d3e6310af2fea870f6a5caa5fb2e7ebd Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-06-23 06:10:16 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-06-23 08:27:08 +0000 math/py-resample: New port: Resampling-based inference in Python --- math/Makefile | 1 + math/py-resample/Makefile | 29 +++++++++++++++++++++++++++++ math/py-resample/distinfo | 3 +++ math/py-resample/pkg-descr | 13 +++++++++++++ 4 files changed, 46 insertions(+) diff --git a/math/Makefile b/math/Makefile index 3155355f9629..2a8a9876fcb0 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1035,6 +1035,7 @@ SUBDIR += py-random2 SUBDIR += py-reals SUBDIR += py-rectangle-packer + SUBDIR += py-resample SUBDIR += py-roman SUBDIR += py-rpy2 SUBDIR += py-rustworkx diff --git a/math/py-resample/Makefile b/math/py-resample/Makefile new file mode 100644 index 000000000000..f2c361465b7d --- /dev/null +++ b/math/py-resample/Makefile @@ -0,0 +1,29 @@ +PORTNAME= resample +PORTVERSION= 1.6.0 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Resampling-based inference in Python +WWW= https://github.com/scikit-hep/resample + +LICENSE= BSD3CLAUSE +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= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} + +USES= python:3.8+ +USE_PYTHON= pep517 autoplist pytest + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/math/py-resample/distinfo b/math/py-resample/distinfo new file mode 100644 index 000000000000..b1ab33545cdb --- /dev/null +++ b/math/py-resample/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1687500311 +SHA256 (resample-1.6.0.tar.gz) = ff66c9142cae46317fb8b58e7acf59c963721e4f2a1505830cce99b57e78f091 +SIZE (resample-1.6.0.tar.gz) = 388793 diff --git a/math/py-resample/pkg-descr b/math/py-resample/pkg-descr new file mode 100644 index 000000000000..5e3a78f91351 --- /dev/null +++ b/math/py-resample/pkg-descr @@ -0,0 +1,13 @@ +resample is a resampling-based inference in Python based on data resampling and +permutation. + +Features: +* Bootstrap resampling: ordinary or balanced with optional stratification +* Extended bootstrap resampling: also varies sample size +* Parametric resampling: Gaussian, Poisson, gamma, etc.) +* Jackknife estimates of bias and variance of any estimator +* Compute bootstrap confidence intervals (percentile or BCa) for any estimator +* Permutation-based variants of traditional statistical tests (USP test of + independence and others) +* Tools for working with empirical distributions (CDF, quantile, etc.) +* Depends only on numpy and scipy