aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-15 23:48:12 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-15 23:48:53 +0000
commitee99418086d76768347fa8699fd32792b9fccb93 (patch)
treeb0bc15b509f1dd404350434a029c0da7fd5f4fec
parent0943bfd0362c41346ff33ce94f09278c00f0f13d (diff)
downloadports-ee99418086d76768347fa8699fd32792b9fccb93.tar.gz
ports-ee99418086d76768347fa8699fd32792b9fccb93.zip
science/py-dwavebinarycsp: New port: DWave: Map CSP with binary variables to binary quadratic models
-rw-r--r--science/Makefile1
-rw-r--r--science/py-dwavebinarycsp/Makefile29
-rw-r--r--science/py-dwavebinarycsp/distinfo3
-rw-r--r--science/py-dwavebinarycsp/pkg-descr4
4 files changed, 37 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 07f14d75a923..1af7a0dfe3f0 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -293,6 +293,7 @@
SUBDIR += py-dwave-samplers
SUBDIR += py-dwave-system
SUBDIR += py-dwave-tabu
+ SUBDIR += py-dwavebinarycsp
SUBDIR += py-eccodes
SUBDIR += py-esda
SUBDIR += py-fresnel
diff --git a/science/py-dwavebinarycsp/Makefile b/science/py-dwavebinarycsp/Makefile
new file mode 100644
index 000000000000..71ef3e763058
--- /dev/null
+++ b/science/py-dwavebinarycsp/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= dwavebinarycsp
+DISTVERSION= 0.2.0
+CATEGORIES= science python # quantum-computing
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= DWave: Map CSP with binary variables to binary quadratic models
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dimod>=0.10.17:science/py-dimod@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}penaltymodel>=1.0.0:science/py-penaltymodel@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+xTEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}vcrpy>0:devel/py-vcrpy@${PY_FLAVOR}
+
+USES= python:3.9+
+USE_PYTHON= distutils cython autoplist unittest
+
+USE_GITHUB= yes
+GH_ACCOUNT= dwavesystems
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-dwavebinarycsp/distinfo b/science/py-dwavebinarycsp/distinfo
new file mode 100644
index 000000000000..1969f2877b1a
--- /dev/null
+++ b/science/py-dwavebinarycsp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660606505
+SHA256 (dwavesystems-dwavebinarycsp-0.2.0_GH0.tar.gz) = 637a7b8452c7e385c84405b021eb1b95f2450ed8844e76ef7d2e43465383849b
+SIZE (dwavesystems-dwavebinarycsp-0.2.0_GH0.tar.gz) = 197915
diff --git a/science/py-dwavebinarycsp/pkg-descr b/science/py-dwavebinarycsp/pkg-descr
new file mode 100644
index 000000000000..ffc8572d8620
--- /dev/null
+++ b/science/py-dwavebinarycsp/pkg-descr
@@ -0,0 +1,4 @@
+dwavebinarycsp is a library to construct a binary quadratic model from a
+constraint satisfaction problem with small constraints over binary variables.
+
+WWW: https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest/