git: 24dc1a102c5d - main - textproc/py-cyclonedx-python-lib: Update to 5.0.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 02 Nov 2023 07:41:30 UTC
The branch main has been updated by sunpoet:

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

commit 24dc1a102c5de8f5553443018cd759781b73fbf2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-02 07:35:06 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-02 07:37:28 +0000

    textproc/py-cyclonedx-python-lib: Update to 5.0.1
    
    - Add JSON_VALIDATION, VALIDATION and XML_VALIDATION options
    
    Changes:        https://github.com/CycloneDX/cyclonedx-python-lib/releases
---
 textproc/py-cyclonedx-python-lib/Makefile          | 16 ++++++++++++---
 textproc/py-cyclonedx-python-lib/distinfo          |  6 +++---
 .../files/patch-pyproject.toml                     | 24 ----------------------
 3 files changed, 16 insertions(+), 30 deletions(-)

diff --git a/textproc/py-cyclonedx-python-lib/Makefile b/textproc/py-cyclonedx-python-lib/Makefile
index 581057b87554..9ad16c9aa281 100644
--- a/textproc/py-cyclonedx-python-lib/Makefile
+++ b/textproc/py-cyclonedx-python-lib/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cyclonedx-python-lib
-PORTVERSION=	4.2.3
+PORTVERSION=	5.0.1
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}license-expression>=30<31:textproc/py-license-expression@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}packageurl-python>=0.9:textproc/py-packageurl-python@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}py-serializable>=0.11.1:devel/py-py-serializable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packageurl-python>=0.11:textproc/py-packageurl-python@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}py-serializable>=0.15<1:devel/py-py-serializable@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.4.0<3:devel/py-sortedcontainers@${PY_FLAVOR}
 
 USES=		python
@@ -23,4 +23,14 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	JSON_VALIDATION VALIDATION XML_VALIDATION
+JSON_VALIDATION_DESC=	JSON validation
+VALIDATION_DESC=	JSON and XML validation
+XML_VALIDATION_DESC=	XML validation
+
+JSON_VALIDATION_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18<5:devel/py-jsonschema@${PY_FLAVOR}
+VALIDATION_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18<5:devel/py-jsonschema@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR}
+XML_VALIDATION_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/textproc/py-cyclonedx-python-lib/distinfo b/textproc/py-cyclonedx-python-lib/distinfo
index 5358419af803..9ceb5631c814 100644
--- a/textproc/py-cyclonedx-python-lib/distinfo
+++ b/textproc/py-cyclonedx-python-lib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1698341083
-SHA256 (cyclonedx_python_lib-4.2.3.tar.gz) = 904068b55d1665f0ea96f38307603cc14f95c3b421f1687fc2411326aefde3a6
-SIZE (cyclonedx_python_lib-4.2.3.tar.gz) = 247667
+TIMESTAMP = 1698848768
+SHA256 (cyclonedx_python_lib-5.0.1.tar.gz) = e2fe858c9411dd0b84a7df9529d740d6b0bc8c96a86434ffe46e2b37d82ccac9
+SIZE (cyclonedx_python_lib-5.0.1.tar.gz) = 431223
diff --git a/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml b/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml
deleted file mode 100644
index 775c6a8599e7..000000000000
--- a/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml
+++ /dev/null
@@ -1,24 +0,0 @@
---- pyproject.toml.orig	2023-09-14 13:29:30 UTC
-+++ pyproject.toml
-@@ -20,10 +20,6 @@ documentation = "https://cyclonedx-python-library.read
- packages = [
-   { include = "cyclonedx" }
- ]
--include = [
--  "README.md", "LICENSE", "NOTICE",
--  { path = "tests", format = "sdist" },
--]
- classifiers = [
-   # Trove classifiers - https://packaging.python.org/specifications/core-metadata/#metadata-classifier
-   # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
-@@ -53,8 +49,8 @@ keywords = [
- [tool.poetry.dependencies]
- # ATTENTION: keep `deps.lowest.r` file in sync
- python = "^3.7"
--packageurl-python = ">= 0.11"
--py-serializable = "^0.11.1"
-+packageurl-python = ">= 0.9"
-+py-serializable = ">= 0.11.1"
- sortedcontainers = "^2.4.0"
- license-expression = "^30"
-