git: cab2866cbccc - main - science/py-qiskit-ibm-provider: New port: Qiskit Provider for accessing IBM quantum devices and simulators

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 09 Aug 2022 03:29:01 UTC
The branch main has been updated by yuri:

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

commit cab2866cbccc1542e6032df039fefc5b30264bee
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-09 03:26:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-09 03:28:58 +0000

    science/py-qiskit-ibm-provider: New port: Qiskit Provider for accessing IBM quantum devices and simulators
---
 science/Makefile                         |  1 +
 science/py-qiskit-ibm-provider/Makefile  | 37 ++++++++++++++++++++++++++++++++
 science/py-qiskit-ibm-provider/distinfo  |  3 +++
 science/py-qiskit-ibm-provider/pkg-descr |  7 ++++++
 4 files changed, 48 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 3ed2a608ec9a..78c4a5ecbada 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -338,6 +338,7 @@
     SUBDIR += py-pyteomics
     SUBDIR += py-qcelemental
     SUBDIR += py-qcengine
+    SUBDIR += py-qiskit-ibm-provider
     SUBDIR += py-qiskit-terra
     SUBDIR += py-qspin
     SUBDIR += py-quantities
diff --git a/science/py-qiskit-ibm-provider/Makefile b/science/py-qiskit-ibm-provider/Makefile
new file mode 100644
index 000000000000..528303e84032
--- /dev/null
+++ b/science/py-qiskit-ibm-provider/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	qiskit-ibm-provider
+PORTVERSION=	g20220804
+CATEGORIES=	science python # quantum-computing
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Qiskit Provider for accessing IBM quantum devices and simulators
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+PY_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.0:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}qiskit-terra>=0.18.0:science/py-qiskit-terra@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.19:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests_ntlm>=1.1.0:www/py-requests_ntlm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=1.21.1:net/py-urllib3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}websocket-client>0:www/py-websocket-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}websockets>=10.0:devel/py-websockets@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipywidgets>0:devel/py-ipywidgets@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nbconvert>=5.3.1:devel/py-nbconvert@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nbformat>=4.4.0:devel/py-nbformat@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	distutils autoplist pytest # one test fails, see https://github.com/Qiskit/qiskit-ibm-provider/issues/378
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Qiskit
+GH_TAGNAME=	aa98156
+
+NO_ARCH=	yes
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/science/py-qiskit-ibm-provider/distinfo b/science/py-qiskit-ibm-provider/distinfo
new file mode 100644
index 000000000000..bc4b3945b4bf
--- /dev/null
+++ b/science/py-qiskit-ibm-provider/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660014922
+SHA256 (Qiskit-qiskit-ibm-provider-g20220804-aa98156_GH0.tar.gz) = c3690ed0e4c12a55872010557b5e1c5791a52fd79a0ffbdd869ca9027274f8e2
+SIZE (Qiskit-qiskit-ibm-provider-g20220804-aa98156_GH0.tar.gz) = 301226
diff --git a/science/py-qiskit-ibm-provider/pkg-descr b/science/py-qiskit-ibm-provider/pkg-descr
new file mode 100644
index 000000000000..b47f4004e4fa
--- /dev/null
+++ b/science/py-qiskit-ibm-provider/pkg-descr
@@ -0,0 +1,7 @@
+Qiskit [quiss-kit] is an open-source SDK for working with quantum computers
+at the level of pulses, circuits, and application modules.
+
+qiskit-ibmq-provider is a Qiskit Provider for accessing the quantum devices and
+simulators.
+
+WWW: https://qiskit.org/