git: 5fa5d349f21a - main - devel/py-qcs-api-client: Fix BUILD_DEPENDS

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 05 Sep 2023 20:47:12 UTC
The branch main has been updated by sunpoet:

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

commit 5fa5d349f21a600e3d9386d461bc3aff3c508e26
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-05 20:41:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-05 20:46:33 +0000

    devel/py-qcs-api-client: Fix BUILD_DEPENDS
    
    - While I'm here, fix WWW
    
    Poetry is packing and dependency management utility for Python. It should not be
    used as BUILD_DEPENDS. Its PEP517 build backend is devel/py-poetry-core.
    Therefore, I fixed pyproject.toml and sent the pull request as well.
    
    Approved by:    portmgr (blanket)
    With hat:       python
    Reference:      https://github.com/rigetti/qcs-api-client-python/blob/v0.21.5/pyproject.toml#L55-L57
---
 devel/py-qcs-api-client/Makefile                   |  4 ++--
 devel/py-qcs-api-client/files/patch-pyproject.toml | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/devel/py-qcs-api-client/Makefile b/devel/py-qcs-api-client/Makefile
index bfed7c346eec..1b6b42a6213d 100644
--- a/devel/py-qcs-api-client/Makefile
+++ b/devel/py-qcs-api-client/Makefile
@@ -7,12 +7,12 @@ DISTNAME=	${PORTNAME:S/-/_/g}-${DISTVERSION}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Client library for accessing the Rigetti QCS API
-WWW=		https://github.com/rigetti/pyquil
+WWW=		https://github.com/rigetti/qcs-api-client-python
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry>0:devel/py-poetry@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=21.3.0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}iso8601>=1.0.2:devel/py-iso8601@${PY_FLAVOR} \
diff --git a/devel/py-qcs-api-client/files/patch-pyproject.toml b/devel/py-qcs-api-client/files/patch-pyproject.toml
new file mode 100644
index 000000000000..53db5e40c103
--- /dev/null
+++ b/devel/py-qcs-api-client/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2023-05-03 18:28:26 UTC
++++ pyproject.toml
+@@ -53,5 +53,5 @@ multi_line_output = 3
+ include_trailing_comma = true
+ 
+ [build-system]
+-requires = ["poetry>=1.0"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"