python-python-sbom
Port variant v15
Summary Write PEP 770 CycloneDX SBOMs into wheels (3.15)
Package version 0.5.0
Homepage https://github.com/tox-dev/python-sbom
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 27 NOV 2026, 01:15:48 UTC
Port created 27 NOV 2026, 01:15:48 UTC
Subpackage Descriptions
single [image] # python-sbom [PyPI] [Supported Python versions] [check] [Documentation Status] [Downloads] [OpenSSF Scorecard] Software bills of materials (SBOMs) for Python distributions. python-sbom writes a [CycloneDX] SBOM into every [wheel] you build, where [PEP 770] (a Python Enhancement Proposal) tells installers to keep it. The SBOM records your project, the runtime dependencies it declares, any wheels it bundles, and the build toolchain, and a rebuild with the same inputs reproduces it byte for byte. ## Use python-sbom works with every [build backend]. Pick the integration for yours: | Backend | Add to `[build-system] requires` | Turn it on | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | --------------------------------------------------------------------------------- | | [hatchling] | `python-sbom[hatch]` | `[tool.hatch.build.hooks.python-sbom]` | | [pdm-backend] | `python-sbom[pdm]` | `[tool.python-sbom]` | | [setuptools] | `python-sbom[setuptools]` | `[tool.python-sbom]` | | any other, such as [meson-python], [maturin], [scikit-build-core] or [flit-core] | `python-sbom` | `build-backend = "python_sbom.backend"`, and your backend in `[tool.python-sbom]` | With hatchling: ```toml [build-system] build-backend = "hatchling.build" requires = ["hatchling>=1.28", "python-sbom[hatch]>=0.2"] [tool.hatch.build.hooks.python-sbom] ``` With meson-python, or any backend without a plugin, python-sbom wraps it: ```toml [build-system] build-backend = "python_sbom.backend" requires = ["meson-python>=0.18", "python-sbom>=0.2"] [tool.python-sbom] build-backend = "mesonpy" ``` For a wheel built outside the build interface, such as with [`maturin build`], or renamed after it by [`auditwheel repair`], embed the SBOM afterwards: ```console python-sbom embed dist/*.whl ``` To convert and validate SBOMs in continuous integration (CI), install the command line in a tool environment of its own with [pipx] or [uv]: ```console pipx install 'python-sbom[validate]' python-sbom validate dist/ ``` The [documentation] starts with a tutorial, then has a guide per backend, the options and commands, and how the SBOM is built. It also covers describing a
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Runtime (only) python-installer:single:v15
python-packageurl-python:single:v15
python-packaging:single:v15
python-zipremove:single:v15
Download groups
main mirror://PYPIWHL/76/14/fe9bb28561fdf76f3385446814e28683be7dce32ae1d2fe525a2d370a75d
Distribution File Information
9d9e2075dd8d4ddcc60b52cd58551ec44239a939520bdee5be9f8f715cbae282 211221 python-src/python_sbom-0.5.0-py3-none-any.whl
Ports that require python-python-sbom:v15
python-pipdeptree:v15 Utility to show package dependency tree (3.15)