diff mbox series

[meta-python,12/32] python3-python-sbom: Add recipe

Message ID 20261127041614.1775064-13-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream checks, upgrades and ptest fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 4:15 a.m. UTC
python-sbom writes PEP 770 CycloneDX SBOMs into wheels. It provides
hatchling, setuptools and pdm-backend build hooks.

Newer releases of python3-platformdirs, python3-pyproject-api,
python3-pytest-env, python3-discovery and other tox-dev projects
list python-sbom[hatch] in build-system.requires and enable its hatch
hook, so the native recipe is needed to build them.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../python/python3-python-sbom_0.5.0.bb       | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-python-sbom_0.5.0.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-python-sbom_0.5.0.bb b/meta-python/recipes-devtools/python/python3-python-sbom_0.5.0.bb
new file mode 100644
index 0000000000..54690f33fa
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-python-sbom_0.5.0.bb
@@ -0,0 +1,41 @@ 
+SUMMARY = "SBOMs for Python distributions: write PEP 770 CycloneDX SBOMs into wheels"
+HOMEPAGE = "https://github.com/tox-dev/python-sbom"
+LICENSE = "MIT AND Apache-2.0"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=11610a9d8fd95649cf8159be12b98cb7 \
+    file://src/python_sbom/_validate/schemas/LICENSE;md5=68aefe2439be54463bf213af4ca4d678 \
+"
+
+SRC_URI[sha256sum] = "fc7b2c46fa40f52e587ac59cada775e83dcac231fafa90b7a71c3554527ddfb6"
+
+PYPI_PACKAGE = "python-sbom"
+
+inherit pypi python_hatchling
+
+DEPENDS += " \
+    python3-hatch-fancy-pypi-readme-native \
+    python3-hatch-vcs-native \
+    python3-installer-native \
+    python3-packageurl-python-native \
+    python3-packaging-native \
+    python3-zipremove-native \
+"
+
+RDEPENDS:${PN} += " \
+    python3-asyncio \
+    python3-compression \
+    python3-core \
+    python3-crypt \
+    python3-datetime \
+    python3-email \
+    python3-io \
+    python3-json \
+    python3-netclient \
+    python3-installer \
+    python3-packageurl-python \
+    python3-packaging \
+    python3-tomllib \
+    python3-zipremove \
+"
+
+BBCLASSEXTEND = "native nativesdk"