git: 6f334aa7bd69 - main - devel/py-pip-audit: Allow build with py-cyclonedx-python-lib 7.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 10 Apr 2024 09:37:11 UTC
The branch main has been updated by sunpoet:

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

commit 6f334aa7bd699e02ba60795e62fd81a6e9215654
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-10 09:35:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-10 09:36:15 +0000

    devel/py-pip-audit: Allow build with py-cyclonedx-python-lib 7.0.0+
    
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/pypa/pip-audit/commit/f24688067bf916a8f69b30bbe4581ae15246f1d0
---
 devel/py-pip-audit/Makefile                   |  3 ++-
 devel/py-pip-audit/files/patch-pyproject.toml | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/py-pip-audit/Makefile b/devel/py-pip-audit/Makefile
index b774ed7885f9..d1c8d7a95c7e 100644
--- a/devel/py-pip-audit/Makefile
+++ b/devel/py-pip-audit/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pip-audit
 PORTVERSION=	2.7.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI \
 		https://github.com/pypa/pip-audit/releases/download/v${PORTVERSION}/
@@ -15,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cachecontrol>=0.13.0:www/py-cachecontrol@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}cyclonedx-python-lib>=5<7:textproc/py-cyclonedx-python-lib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cyclonedx-python-lib>=5<8:textproc/py-cyclonedx-python-lib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}html5lib>=1.1:www/py-html5lib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>=23.0.0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pip-api>=0.0.28:devel/py-pip-api@${PY_FLAVOR} \
diff --git a/devel/py-pip-audit/files/patch-pyproject.toml b/devel/py-pip-audit/files/patch-pyproject.toml
new file mode 100644
index 000000000000..40387a87a3a1
--- /dev/null
+++ b/devel/py-pip-audit/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+Obtained from:	https://github.com/pypa/pip-audit/commit/f24688067bf916a8f69b30bbe4581ae15246f1d0
+
+--- pyproject.toml.orig	2024-02-29 16:06:23 UTC
++++ pyproject.toml
+@@ -28,7 +28,7 @@ dependencies = [
+ ]
+ dependencies = [
+     "CacheControl[filecache] >= 0.13.0",
+-    "cyclonedx-python-lib >= 5,< 7",
++    "cyclonedx-python-lib >= 5,< 8",
+     "html5lib>=1.1",
+     "packaging>=23.0.0",                 # https://github.com/pypa/pip-audit/issues/464
+     "pip-api>=0.0.28",