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.
This commit is contained in:
Po-Chuan Hsieh
2023-07-09 18:10:42 +08:00
parent 31a40d7cfd
commit 3d6eb8cdac
5 changed files with 47 additions and 0 deletions
+1
View File
@@ -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
+25
View File
@@ -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>
@@ -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
@@ -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"
@@ -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.