git: ff73ba6c830b - main - math/py-hypernetx: Add new port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Thu, 10 Oct 2024 07:22:14 UTC
The branch main has been updated by wen:

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

commit ff73ba6c830bdb9cca467d2b951ab9d95e4152cd
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-10-10 02:44:03 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-10-10 07:17:19 +0000

    math/py-hypernetx: Add new port
    
    The HyperNetX library provides classes and methods for the analysis
    and visualization of complex network data modeled as hypergraphs.
    The library generalizes traditional graph metrics.
---
 math/Makefile               |  1 +
 math/py-hypernetx/Makefile  | 22 ++++++++++++++++++++++
 math/py-hypernetx/distinfo  |  3 +++
 math/py-hypernetx/pkg-descr |  3 +++
 4 files changed, 29 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 7d043548bb6a..1bb2cae8b7ab 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -969,6 +969,7 @@
     SUBDIR += py-hepstats
     SUBDIR += py-heyoka
     SUBDIR += py-hmmlearn
+    SUBDIR += py-hypernetx
     SUBDIR += py-igraph
     SUBDIR += py-iminuit
     SUBDIR += py-intspan
diff --git a/math/py-hypernetx/Makefile b/math/py-hypernetx/Makefile
new file mode 100644
index 000000000000..85f8b35df935
--- /dev/null
+++ b/math/py-hypernetx/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	hypernetx
+DISTVERSION=	2.3.5
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Python library for the creation and study of hypergraphs
+WWW=		https://github.com/pnnl/HyperNetX
+
+LICENSE=	BSD3CLAUSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>=4.3.0:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>=1.3:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-learn>=1.4:science/py-scikit-learn@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}networkx>=3.3:math/py-networkx@${PY_FLAVOR}
+
+USES=		cpe python shebangfix
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+.include <bsd.port.mk>
diff --git a/math/py-hypernetx/distinfo b/math/py-hypernetx/distinfo
new file mode 100644
index 000000000000..012fe1ef32b8
--- /dev/null
+++ b/math/py-hypernetx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728458294
+SHA256 (hypernetx-2.3.5.tar.gz) = c5eebcd492e8d76d5f94351ee3b52e521f3754ddb15de49bf5d4df72cd294ea2
+SIZE (hypernetx-2.3.5.tar.gz) = 569801
diff --git a/math/py-hypernetx/pkg-descr b/math/py-hypernetx/pkg-descr
new file mode 100644
index 000000000000..2bb1eccd396c
--- /dev/null
+++ b/math/py-hypernetx/pkg-descr
@@ -0,0 +1,3 @@
+The HyperNetX library provides classes and methods for the analysis
+and visualization of complex network data modeled as hypergraphs.
+The library generalizes traditional graph metrics.