git: 3d6eb8cdacfa - main - textproc/py-cyclonedx-python-lib: Add py-cyclonedx-python-lib 4.0.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Jul 2023 10:33:43 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d6eb8cdacfab00e40eec5ce70cc5f7a59dad0d7 commit 3d6eb8cdacfab00e40eec5ce70cc5f7a59dad0d7 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-07-09 10:10:42 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-07-09 10:15:54 +0000 textproc/py-cyclonedx-python-lib: Add py-cyclonedx-python-lib 4.0.1 This CycloneDX module for Python can generate valid CycloneDX bill-of-material document containing an aggregate of all project dependencies. CycloneDX is a lightweight BOM specification that is easily created, human-readable, and simple to parse. --- textproc/Makefile | 1 + textproc/py-cyclonedx-python-lib/Makefile | 25 ++++++++++++++++++++++ textproc/py-cyclonedx-python-lib/distinfo | 3 +++ .../files/patch-pyproject.toml | 14 ++++++++++++ textproc/py-cyclonedx-python-lib/pkg-descr | 4 ++++ 5 files changed, 47 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index c80cf0211f4f..df03061788f3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1323,6 +1323,7 @@ SUBDIR += py-cssselect2 SUBDIR += py-csvkit SUBDIR += py-custom_inherit + SUBDIR += py-cyclonedx-python-lib SUBDIR += py-dbfread SUBDIR += py-dialect SUBDIR += py-dict2xml diff --git a/textproc/py-cyclonedx-python-lib/Makefile b/textproc/py-cyclonedx-python-lib/Makefile new file mode 100644 index 000000000000..5ff248e21e6f --- /dev/null +++ b/textproc/py-cyclonedx-python-lib/Makefile @@ -0,0 +1,25 @@ +PORTNAME= cyclonedx-python-lib +PORTVERSION= 4.0.1 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= cyclonedx_python_lib-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Library for producing CycloneDX SBOM (Software Bill of Materials) files +WWW= https://github.com/CycloneDX/cyclonedx-python-lib + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packageurl-python>=0.9:textproc/py-packageurl-python@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}py-serializable>=0.11.1<0.12:devel/py-py-serializable@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.3.0<3:devel/py-sortedcontainers@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/textproc/py-cyclonedx-python-lib/distinfo b/textproc/py-cyclonedx-python-lib/distinfo new file mode 100644 index 000000000000..2dbcda2d61fd --- /dev/null +++ b/textproc/py-cyclonedx-python-lib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688166032 +SHA256 (cyclonedx_python_lib-4.0.1.tar.gz) = 878e33b8e0080c786f6cbd4c6f87ad610db65d6a3a686a5698415d9cfcd8925d +SIZE (cyclonedx_python_lib-4.0.1.tar.gz) = 246840 diff --git a/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml b/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml new file mode 100644 index 000000000000..15889f190805 --- /dev/null +++ b/textproc/py-cyclonedx-python-lib/files/patch-pyproject.toml @@ -0,0 +1,14 @@ +--- pyproject.toml.orig 2023-06-28 15:26:06 UTC ++++ pyproject.toml +@@ -48,9 +48,9 @@ keywords = [ + # ATTENTION: keep `deps.lowest.r` file in sync + python = "^3.7" + importlib-metadata = { version = "^3.4.0", python = "<3.8" } +-packageurl-python = ">= 0.11" ++packageurl-python = ">= 0.9" + py-serializable = "^0.11.1" +-sortedcontainers = "^2.4.0" ++sortedcontainers = "^2.3.0" + + [tool.poetry.dev-dependencies] + ddt = "^1.6.0" diff --git a/textproc/py-cyclonedx-python-lib/pkg-descr b/textproc/py-cyclonedx-python-lib/pkg-descr new file mode 100644 index 000000000000..aba8443ae272 --- /dev/null +++ b/textproc/py-cyclonedx-python-lib/pkg-descr @@ -0,0 +1,4 @@ +This CycloneDX module for Python can generate valid CycloneDX bill-of-material +document containing an aggregate of all project dependencies. CycloneDX is a +lightweight BOM specification that is easily created, human-readable, and simple +to parse.