git: 8c5d502b2d59 - main - devel/py-sparse: Add py-sparse 0.13.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 15:53:49 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8c5d502b2d59d22751ce2f73c6720c2824490767

commit 8c5d502b2d59d22751ce2f73c6720c2824490767
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-05 15:15:14 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-05 15:47:38 +0000

    devel/py-sparse: Add py-sparse 0.13.0
    
    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.
---
 devel/Makefile            |  1 +
 devel/py-sparse/Makefile  | 23 +++++++++++++++++++++++
 devel/py-sparse/distinfo  |  3 +++
 devel/py-sparse/pkg-descr | 13 +++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7ab7ff9a8c54..f8705a60af60 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 000000000000..13118fe94aed
--- /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 <bsd.port.mk>
diff --git a/devel/py-sparse/distinfo b/devel/py-sparse/distinfo
new file mode 100644
index 000000000000..f3186ff56c13
--- /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 000000000000..ae3423224579
--- /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.