aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-14 08:21:02 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-14 08:22:00 +0000
commitd092c6e0aca1bf96c2bb307d5157bb9f90aa2f1a (patch)
tree6124838f0731aff4cacb1f89fd4e94e1f4cc4de6
parent40ac47f918a8605540ebb316750043af9169bc72 (diff)
downloadports-d092c6e0aca1bf96c2bb307d5157bb9f90aa2f1a.tar.gz
ports-d092c6e0aca1bf96c2bb307d5157bb9f90aa2f1a.zip
science/py-dwave-networkx: New port: DWave: Extension of the NetworkX Python package for graphs
-rw-r--r--science/Makefile1
-rw-r--r--science/py-dwave-networkx/Makefile30
-rw-r--r--science/py-dwave-networkx/distinfo3
-rw-r--r--science/py-dwave-networkx/pkg-descr7
4 files changed, 41 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index bdc55284f279..f3d473705fe7 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -285,6 +285,7 @@
SUBDIR += py-dipy
SUBDIR += py-dlib
SUBDIR += py-dwave-neal
+ SUBDIR += py-dwave-networkx
SUBDIR += py-dwave-samplers
SUBDIR += py-dwave-tabu
SUBDIR += py-eccodes
diff --git a/science/py-dwave-networkx/Makefile b/science/py-dwave-networkx/Makefile
new file mode 100644
index 000000000000..8db0e5a9bc82
--- /dev/null
+++ b/science/py-dwave-networkx/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= dwave-networkx
+DISTVERSION= 0.8.12
+CATEGORIES= science graphics # quantum-computing
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= DWave: Extension of the NetworkX Python package for graphs
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>=0.10.8:science/py-dimod@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}networkx>=2.4:math/py-networkx@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= distutils cython autoplist unittest
+
+USE_GITHUB= yes
+GH_ACCOUNT= dwavesystems
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/science/py-dwave-networkx/distinfo b/science/py-dwave-networkx/distinfo
new file mode 100644
index 000000000000..0b57394b1d19
--- /dev/null
+++ b/science/py-dwave-networkx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660463286
+SHA256 (dwavesystems-dwave-networkx-0.8.12_GH0.tar.gz) = 92c1ada60d08c63bbd8e3ad408f49d61089ec95a1460b492a90da20d8b84bb86
+SIZE (dwavesystems-dwave-networkx-0.8.12_GH0.tar.gz) = 1405917
diff --git a/science/py-dwave-networkx/pkg-descr b/science/py-dwave-networkx/pkg-descr
new file mode 100644
index 000000000000..e00150f775c2
--- /dev/null
+++ b/science/py-dwave-networkx/pkg-descr
@@ -0,0 +1,7 @@
+D-Wave NetworkX is an extension of NetworkX - a Python language package for
+exploration and analysis of networks and network algorithms - for users of
+D-Wave Systems. It provides tools for working with Chimera graphs and
+implementations of graph-theory algorithms on the D-Wave system and other
+binary quadratic model samplers.
+
+WWW: https://github.com/dwavesystems/dwave-networkx