git: 796fa3c92810 - main - devel/py-pyquil: New port: PyQuil: Quantum programming in Python

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 31 May 2022 03:18:10 UTC
The branch main has been updated by yuri:

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

commit 796fa3c92810d6d58b2471432b675f4902d9134b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-05-31 03:17:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-05-31 03:18:03 +0000

    devel/py-pyquil: New port: PyQuil: Quantum programming in Python
---
 devel/Makefile            |  1 +
 devel/py-pyquil/Makefile  | 26 ++++++++++++++++++++++++++
 devel/py-pyquil/distinfo  |  3 +++
 devel/py-pyquil/pkg-descr | 11 +++++++++++
 4 files changed, 41 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index b97ff1004f7c..4e2ee38fd6e4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5087,6 +5087,7 @@
     SUBDIR += py-pypugjs
     SUBDIR += py-pyqtree
     SUBDIR += py-pyquery
+    SUBDIR += py-pyquil
     SUBDIR += py-pyral
     SUBDIR += py-pyrepl
     SUBDIR += py-pyrfc3339
diff --git a/devel/py-pyquil/Makefile b/devel/py-pyquil/Makefile
new file mode 100644
index 000000000000..976bb4d5eca5
--- /dev/null
+++ b/devel/py-pyquil/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	pyquil
+DISTVERSION=	3.1.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	PyQuil: Quantum programming in Python
+
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}lark-parser>=0.11.1:devel/py-lark-parser@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}networkx>=2.5:math/py-networkx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}qcs-api-client>=0.8.1:devel/py-qcs-api-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}retry2>=0.9.2:devel/py-retry2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rpcq>=3.6.0:devel/py-rpcq@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.6.1:science/py-scipy@${PY_FLAVOR}
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.8+
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pyquil/distinfo b/devel/py-pyquil/distinfo
new file mode 100644
index 000000000000..32abb4520472
--- /dev/null
+++ b/devel/py-pyquil/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1653960969
+SHA256 (pyquil-3.1.0.tar.gz) = 8ca8b67fe1cc4dcbee06a061edf876df1c2172edf21e979d4bf1e8c640616db3
+SIZE (pyquil-3.1.0.tar.gz) = 180284
diff --git a/devel/py-pyquil/pkg-descr b/devel/py-pyquil/pkg-descr
new file mode 100644
index 000000000000..3a938a6a411b
--- /dev/null
+++ b/devel/py-pyquil/pkg-descr
@@ -0,0 +1,11 @@
+PyQuil is a Python library for quantum programming using Quil, the quantum
+instruction language developed at Rigetti Computing. PyQuil serves three main
+functions:
+
+* Easily generating Quil programs from quantum gates and classical operations
+* Compiling and simulating Quil programs using the Quil Compiler (quilc) and the
+  Quantum Virtual Machine (QVM)
+* Executing Quil programs on real quantum processors (QPUs) using Quantum Cloud
+  Services (QCS)
+
+WWW: https://github.com/rigetti/pyquil