aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2024-10-10 02:44:03 +0000
committerWen Heping <wen@FreeBSD.org>2024-10-10 07:17:19 +0000
commitff73ba6c830bdb9cca467d2b951ab9d95e4152cd (patch)
treee7c5988bf012e825dac8cebfb573f80b12d6b6db
parent57a0731fc7b209261f941bb9b8023a3e0f4ee1e1 (diff)
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.
-rw-r--r--math/Makefile1
-rw-r--r--math/py-hypernetx/Makefile22
-rw-r--r--math/py-hypernetx/distinfo3
-rw-r--r--math/py-hypernetx/pkg-descr3
4 files changed, 29 insertions, 0 deletions
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.