devel/py-pip-audit: Allow build with py-cyclonedx-python-lib 5.0.0+

- Bump PORTREVISION for package change

Obtained from:	20e7beece9
This commit is contained in:
Po-Chuan Hsieh 2023-11-01 13:30:08 +08:00
parent ee491a6c69
commit 1f069eecb7
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 15 additions and 1 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= pip-audit
PORTVERSION= 2.6.1
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,7 +15,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>=4.0<5:textproc/py-cyclonedx-python-lib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cyclonedx-python-lib>=4<6: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} \

View file

@ -0,0 +1,13 @@
Obtained from: https://github.com/pypa/pip-audit/commit/20e7beece90b117687978205073435f8a54866cc
--- pyproject.toml.orig 2023-07-24 18:47:23 UTC
+++ pyproject.toml
@@ -30,7 +30,7 @@ dependencies = [
"CacheControl[filecache] >= 0.13.0",
# NOTE(ww): Release 2.5.0 is broken, subsequent 2.5.x releases fix it.
# See: https://github.com/CycloneDX/cyclonedx-python-lib/issues/245
- "cyclonedx-python-lib ~= 4.0",
+ "cyclonedx-python-lib >= 4,< 6",
"html5lib>=1.1",
"packaging>=23.0.0", # https://github.com/pypa/pip-audit/issues/464
"pip-api>=0.0.28",