python-sbom 0.5.0-1
Package Information
| Description | SBOMs for Python distributions Software bills of materials (SBOMs) for Python distributions. python-sbom writes a CycloneDX Software bills of materials (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. |
|---|---|
| Maintainer | Daniel Baumann <daniel@debian.org> |
| Changed By | Daniel Baumann <daniel@debian.org> |
| Sponsor | mail@daniel-baumann.ch |
| Distribution | sid |
| Architecture | all |
| VCS | git: https://forgejo.debian.net/python/python-sbom (browse) |
| Closes | #1154698 |
| Tracker | https://tracker.debian.org/pkg/python-sbom |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Date | Sat, 21 Nov 2026 19:01:44 +0100 |
|---|---|
| Source | python-sbom |
| Version | 0.5.0-1 |
| Changed-By | Daniel Baumann <daniel@debian.org> |
| Architecture | source all |
| Distribution | sid |
Changelog
python-sbom (0.5.0-1) sid; urgency=medium . * Initial upload to sid, needed for tox-ini-fmt (Closes: #1154698).
.dsc
| Section | python |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | python3-python-sbom deb python optional arch=all |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-sbom Upstream-Contact: https://github.com/tox-dev/python-sbom/issues Source: https://github.com/tox-dev/python-sbom/tags Files: * Copyright: 2026 Bernát Gábor <gaborjbernat@gmail.com> License: MIT Files: src/python_sbom/_validate/schemas/*.json Copyright: 2026 Bernát Gábor <gaborjbernat@gmail.com> License: Apache-2.0 Files: debian/* Copyright: 2026 Daniel Baumann <daniel@debian.org> License: MIT License: Apache-2.0 The full text of the Apache 2.0 license can be found in the file /usr/share/common-licenses/Apache-2.0 License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DFSG Assistant LLM REVIEW 1 blocker, 0 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for python-sbom version 0.5.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 3 found
Licensing
The code is DFSG-free: MIT for python-sbom itself and Apache-2.0 for three vendored CycloneDX JSON schemas, which are compatible and come with a full licence text beside them. debian/copyright is not accurate, however: Files: * describes the bundled Apache-2.0 LICENSE of those schemas as MIT under Bernát Gábor, and the schema stanza names Bernát Gábor where the CycloneDX files are OWASP Foundation's. Everything else in the tree was accounted for and matches the file.
Packaging
Modern, clean packaging: debhelper compat 14 with pybuild and pyproject, arch:all single binary, correct Build-Depends (python3-zipremove is uploaded and waiting in NEW), current Standards-Version 4.7.4, Vcs-* and upstream metadata, DEP-5 copyright, and examples installed from docs/examples. debhelper/dh_python3 generate the runtime dependencies from Requires-Dist, so no Depends field is needed. The one gap is that the installed python-sbom command has no manual page (Policy 12.1).
Issues
blocker licensing 1. debian/copyright calls the vendored CycloneDX Apache-2.0 LICENSE MIT under Bernát Gábor ◂
- Files:
debian/copyright:6-8,src/python_sbom/_validate/schemas/LICENSE:1,src/python_sbom/_validate/schemas/LICENSE:189,pyproject.toml:29 - Basis: checked, in the package or with a reference tool
- Evidence:
debian/copyrighthasFiles: */Copyright: 2026 Bernát Gábor <gaborjbernat@gmail.com>/License: MIT, and the Apache stanza's pattern is onlysrc/python_sbom/_validate/schemas/*.json. The file itself startsApache License / Version 2.0and containsCopyright OWASP Foundation;pyproject.toml:29haslicense-files = [ "LICENSE", "src/python_sbom/_validate/schemas/LICENSE" ]. - Problem: The schemas' LICENSE is not a
.json, soFiles: *matches it first and the Apache stanza never overrides it: debian/copyright states MIT and the wrong holder for a file that is CycloneDX's Apache-2.0 licence text. It is shipped in the binary package both as package data and throughlicense-files. DEP-5 must give each file's actual licence, and a wrong licence is as serious wherever the file is, since the source package is distributed too. - Fix: Widen the schema stanza to the whole directory, e.g.
Files: src/python_sbom/_validate/schemas/*withCopyright: OWASP FoundationandLicense: Apache-2.0, so that the LICENSE and the three JSON files are both described correctly.
minor licensing 2. The CycloneDX schema files are OWASP Foundation's, not Bernát Gábor's ◂
- Files:
debian/copyright:10-12,src/python_sbom/_validate/schemas/bom-1.6.schema.json:6,src/python_sbom/_validate/schemas/jsf-0.82.schema.json:6,src/python_sbom/_validate/schemas/LICENSE:189,src/python_sbom/_validate/_schemas.py:123-126 - Basis: checked, in the package or with a reference tool
- Evidence:
_schemas.py:123says# the official CycloneDX schema files, unchanged ... Apache-2.0, see the LICENSE beside them;LICENSE:189readsCopyright OWASP Foundation;bom-1.6.schema.json:6has"$comment" : "CycloneDX JSON schema is published under the terms of the Apache License 2.0.". - Problem: The stanza covering the three vendored schemas names Bernát Gábor as their copyright holder; the only holder named by the bundle is OWASP Foundation. Policy 2.3 does not require this notice in debian/copyright: footnote 5 to section 2.3 lists Apache-2.0 among the licences not thought to require copying their notices there, and the full Apache-2.0 LICENSE carrying the notice is installed unchanged beside the schemas; a complete machine-readable copyright file should name the holder all the same.
- Fix: Name
OWASP Foundationas the copyright holder of the schema files. While there, check whetherjsf-0.82.schema.json, whose$commentcredits Anders Rundgren as its developer, needs him named too.
minor packaging 3. No manual page for the installed /usr/bin/python-sbom command ◂
- Files:
pyproject.toml:81,debian/ - Basis: checked, in the package or with a reference tool
- Evidence:
pyproject.toml:81hasscripts.python-sbom = "python_sbom._cli._main:main"; there is no man page anywhere in the source tree and nodebian/*.manpagesfile. Policy 12.1: "Each program, utility, and function should have an associated manual page included in the same package or a dependency." - Problem: The binary package installs a user-facing
python-sbomcommand, and Policy 12.1 considers a missing manual page a bug. The documentation exists asdocs/reference/cli.rst, but it is neither installed nor turned into a man page. - Fix: Add a man page under debian/ (written from
docs/reference/cli.rst) and list it indebian/python3-python-sbom.manpagesso that dh_installman installs it.
Verified ◂
- Prescan wording hits
src/python_sbom/_validate/schemas/spdx.schema.json:148-150are members of the schema'senumof SPDX licence identifiers (CC-BY-NC-1.0,CC-BY-ND-..., ...), data about licences, not licence terms for the file; the file is one of CycloneDX's official schemas and is Apache-2.0 (its$commentand the LICENSE beside it). - Prescan holder hits are placeholders and fixture data, not copyright notices of those files:
bench/_fixtures.py:50is the_LICENSEtext the benchmark writes into generated fixture projects (Copyright (c) 2026 Bench Authors);tests/_seeder/LICENSE:1(Example),docs/examples/hatchling/LICENSE:1(You) anddocs/tutorials/first-sbom.rst:20(aprintfthat creates a demo LICENSE) are demo-project files;tests/_collect/test_source.py:28-29,tests/_collect/test_wheel.py:29,tests/test_backend.py:40,tests/test_pdm.py:29,tests/test_setuptools.py:53andtests/hatch/conftest.py:39writeCopyright (c) 2026 Examplefixture projects;tests/_model/test_bom.py:152is expected test data. tests/_formats/test_spdx.py:162,184containCopyright (c) PyPAas a field of an SPDX document fixture, not a notice of the test file.- All 261 files of the source tree (
.pc/anddebian/excluded) were inventoried, and everydebian/file was read in full; a grep for Copyright/(C)/©/SPDX-License-Identifier/permission/GNU/Apache/MPL/public-domain wording found only the files above plus licence names listed insidespdx.schema.json. - The three JSON schemas and
src/python_sbom/_validate/schemas/LICENSEare upstream's ownlicense-filesand package data (pyproject.toml:28-29); the schemas are unchanged copies of CycloneDX's (comment atsrc/python_sbom/_validate/_schemas.py:123-126), so the only licensing faults are the two in debian/copyright above. - No built, minified, archived or PDF files were flagged;
src/python_sbom/version.pyis generated by hatch-vcs, and.git_archival.txtcarriesdescribe-name: 0.5.0, so hatch-vcs can determine the version from the repacked tarball; thedocs/examples/*/session.consolefiles are plain-text shell transcripts and thedocs/_static/*.svgare the project's own logo assets referenced by the docs (not opened; judged from their role). - Build dependencies exist in the archive: python3.15 3.15.2-1, python3-hatchling 1.32.4-1, python3-hatch-vcs 0.5.0-1, python3-hatch-fancy-pypi-readme 25.1.0-2, pybuild-plugin-pyproject 7.20261030, python3-packageurl 0.17.6-1. python3-zipremove is not in the archive yet but is built by zipremove 0.10.0-1 waiting in NEW, so the dependency is not a fault.
- No
Dependsfield is required: compat 14's dh_gencontrol adds relationship substvars itself, and dh_python3 translatesRequires-Dist/requires.txt into${python3:Depends}(dh_python3(1),--depends); withX-Python3-Version: 3.15it emits the interpreter packagepython3.15, which exists (/usr/share/dh-python/dhpython/depends.py, min==max branch), and Debian'spython3is 3.14.8. - The
validateextra is optional by design:src/python_sbom/_validate/_document.py:98-107checksfind_specand raisesMissingExtraError(aSbomError, printed by_cli/_main.pywithout a traceback); python3-spdx-tools 0.8.5-1 and python3-license-expression 30.4.1-2 are in the archive and jsonschema-rs is not in the package lists, sovalidatedoes not work in Debian, but it fails cleanly as upstream documents. sidin debian/changelog is an accepted distribution name: devscripts'/usr/bin/dchacceptsexperimental|unstable|sid|UNRELEASED|...(line 540), so the changelog distribution is not an issue.- Standards-Version 4.7.4 agrees with the reviewing system's Policy 4.7.4.1 in its first two components; source format is 3.0 (quilt) with no patches, there are no maintainer scripts, and debian/upstream/metadata is valid YAML.
- The build runs no upstream tests: pybuild's default test step is unittest discovery (
/usr/share/dh-python/dhpython/build/base.py), which finds none of the pytest suite, and there is no debian/tests/control. Not a policy violation, but the suite is therefore never exercised by Debian. - uscan found the packaged version as the newest upstream release (upstream
0.5.0, packaged0.5.0). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
- No build was run, so the exact installed file list (three schemas,
schemas/LICENSE, the examples tree) is inferred frompyproject.toml,debian/python3-python-sbom.examplesand hatchling's package-data defaults. - Whether CycloneDX's original schema distribution carried a NOTICE or further attribution could not be checked: only the files in this source package are available, and its bundled Apache-2.0 LICENSE is the only notice.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.