diff --git a/devel/Makefile b/devel/Makefile index 7ab7ff9a8c547..f8705a60af60d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5417,6 +5417,7 @@ SUBDIR += py-sniffio SUBDIR += py-sortedcontainers SUBDIR += py-sourcemap + SUBDIR += py-sparse SUBDIR += py-speaklater SUBDIR += py-speg SUBDIR += py-spyder-kernels diff --git a/devel/py-sparse/Makefile b/devel/py-sparse/Makefile new file mode 100644 index 0000000000000..13118fe94aede --- /dev/null +++ b/devel/py-sparse/Makefile @@ -0,0 +1,23 @@ +PORTNAME= sparse +PORTVERSION= 0.13.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Sparse n-dimensional arrays +WWW= https://github.com/pydata/sparse + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.17,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-sparse/distinfo b/devel/py-sparse/distinfo new file mode 100644 index 0000000000000..f3186ff56c136 --- /dev/null +++ b/devel/py-sparse/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1675190915 +SHA256 (sparse-0.13.0.tar.gz) = 685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915 +SIZE (sparse-0.13.0.tar.gz) = 349320 diff --git a/devel/py-sparse/pkg-descr b/devel/py-sparse/pkg-descr new file mode 100644 index 0000000000000..ae3423224579f --- /dev/null +++ b/devel/py-sparse/pkg-descr @@ -0,0 +1,13 @@ +This implements sparse arrays of arbitrary dimension on top of numpy and +scipy.sparse. It generalizes the scipy.sparse.coo_matrix and +scipy.sparse.dok_matrix layouts, but extends beyond just rows and columns to an +arbitrary number of dimensions. + +Additionally, this project maintains compatibility with the numpy.ndarray +interface rather than the numpy.matrix interface used in scipy.sparse + +These differences make this project useful in certain situations where +scipy.sparse matrices are not well suited, but it should not be considered a +full replacement. The data structures in pydata/sparse complement and can be +used in conjunction with the fast linear algebra routines inside scipy.sparse. A +format conversion or copy may be required.