git: f30cef76c418 - main - math/py-numpy-groupies: New port: Optimised tools for group-indexing operations: aggregated sum and more

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 06 Mar 2022 17:10:02 UTC
The branch main has been updated by yuri:

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

commit f30cef76c418345083cc705ae5c8a9ceab41bb4d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-03-06 16:34:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-03-06 17:09:59 +0000

    math/py-numpy-groupies: New port: Optimised tools for group-indexing operations: aggregated sum and more
---
 math/Makefile                    |  1 +
 math/py-numpy-groupies/Makefile  | 28 ++++++++++++++++++++++++++++
 math/py-numpy-groupies/distinfo  |  3 +++
 math/py-numpy-groupies/pkg-descr |  6 ++++++
 4 files changed, 38 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 4303a8534ba0..c0617a02fd5d 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -875,6 +875,7 @@
     SUBDIR += py-numexpr
     SUBDIR += py-numpoly
     SUBDIR += py-numpy
+    SUBDIR += py-numpy-groupies
     SUBDIR += py-numpy-stl
     SUBDIR += py-openTSNE
     SUBDIR += py-opt-einsum
diff --git a/math/py-numpy-groupies/Makefile b/math/py-numpy-groupies/Makefile
new file mode 100644
index 000000000000..2de48d4e6869
--- /dev/null
+++ b/math/py-numpy-groupies/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	numpy-groupies
+DISTVERSION=	0.9.14
+CATEGORIES=	math python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Optimised tools for group-indexing operations: aggregated sum and more
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
+TEST_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && pytest
+
+.include <bsd.port.mk>
diff --git a/math/py-numpy-groupies/distinfo b/math/py-numpy-groupies/distinfo
new file mode 100644
index 000000000000..34661bfd3512
--- /dev/null
+++ b/math/py-numpy-groupies/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1646583678
+SHA256 (numpy_groupies-0.9.14.tar.gz) = 01b7aeca60e643db34875c9823ea6775742adafe5bb406bca14367743ef81800
+SIZE (numpy_groupies-0.9.14.tar.gz) = 48868
diff --git a/math/py-numpy-groupies/pkg-descr b/math/py-numpy-groupies/pkg-descr
new file mode 100644
index 000000000000..c09e82b8c7cf
--- /dev/null
+++ b/math/py-numpy-groupies/pkg-descr
@@ -0,0 +1,6 @@
+numpy-groupies is a small library of optimised tools for doing things
+that can roughly be considered "group-indexing operations". The most
+prominent tool is aggregate, which is descibed in detail further down
+the page.
+
+WWW: https://github.com/ml31415/numpy-groupies