DFSG NEW Queue

DFSG, Licensing & New Packages Team

python-sbom 0.5.0-1

Package Information

DescriptionSBOMs 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.

MaintainerDaniel Baumann <daniel@debian.org>
Changed ByDaniel Baumann <daniel@debian.org>
Sponsormail@daniel-baumann.ch
Distributionsid
Architectureall
VCSgit: https://forgejo.debian.net/python/python-sbom (browse)
Closes#1154698
Trackerhttps://tracker.debian.org/pkg/python-sbom
Uploaded2 hours ago

New Package Report

.changes◂
DateSat, 21 Nov 2026 19:01:44 +0100
Sourcepython-sbom
Version0.5.0-1
Changed-ByDaniel Baumann <daniel@debian.org>
Architecturesource all
Distributionsid
Changelog◂
python-sbom (0.5.0-1) sid; urgency=medium
 .
   * Initial upload to sid, needed for tox-ini-fmt (Closes: #1154698).
.dsc◂
Sectionpython
Priorityoptional
Componentmain
Package-Listpython3-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/copyright is 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/copyright has Files: * / Copyright: 2026 Bernát Gábor <gaborjbernat@gmail.com> / License: MIT, and the Apache stanza's pattern is only src/python_sbom/_validate/schemas/*.json. The file itself starts Apache License / Version 2.0 and contains Copyright OWASP Foundation; pyproject.toml:29 has license-files = [ "LICENSE", "src/python_sbom/_validate/schemas/LICENSE" ].
  • Problem: The schemas' LICENSE is not a .json, so Files: * 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 through license-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/* with Copyright: OWASP Foundation and License: 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:123 says # the official CycloneDX schema files, unchanged ... Apache-2.0, see the LICENSE beside them; LICENSE:189 reads Copyright OWASP Foundation; bom-1.6.schema.json:6 has "$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 Foundation as the copyright holder of the schema files. While there, check whether jsf-0.82.schema.json, whose $comment credits 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:81 has scripts.python-sbom = "python_sbom._cli._main:main"; there is no man page anywhere in the source tree and no debian/*.manpages file. 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-sbom command, and Policy 12.1 considers a missing manual page a bug. The documentation exists as docs/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 in debian/python3-python-sbom.manpages so that dh_installman installs it.
Verified ◂
  • Prescan wording hits src/python_sbom/_validate/schemas/spdx.schema.json:148-150 are members of the schema's enum of 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 $comment and the LICENSE beside it).
  • Prescan holder hits are placeholders and fixture data, not copyright notices of those files: bench/_fixtures.py:50 is the _LICENSE text the benchmark writes into generated fixture projects (Copyright (c) 2026 Bench Authors); tests/_seeder/LICENSE:1 (Example), docs/examples/hatchling/LICENSE:1 (You) and docs/tutorials/first-sbom.rst:20 (a printf that 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:53 and tests/hatch/conftest.py:39 write Copyright (c) 2026 Example fixture projects; tests/_model/test_bom.py:152 is expected test data.
  • tests/_formats/test_spdx.py:162,184 contain Copyright (c) PyPA as a field of an SPDX document fixture, not a notice of the test file.
  • All 261 files of the source tree (.pc/ and debian/ excluded) were inventoried, and every debian/ 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 inside spdx.schema.json.
  • The three JSON schemas and src/python_sbom/_validate/schemas/LICENSE are upstream's own license-files and package data (pyproject.toml:28-29); the schemas are unchanged copies of CycloneDX's (comment at src/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.py is generated by hatch-vcs, and .git_archival.txt carries describe-name: 0.5.0, so hatch-vcs can determine the version from the repacked tarball; the docs/examples/*/session.console files are plain-text shell transcripts and the docs/_static/*.svg are 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 Depends field is required: compat 14's dh_gencontrol adds relationship substvars itself, and dh_python3 translates Requires-Dist/requires.txt into ${python3:Depends} (dh_python3(1), --depends); with X-Python3-Version: 3.15 it emits the interpreter package python3.15, which exists (/usr/share/dh-python/dhpython/depends.py, min==max branch), and Debian's python3 is 3.14.8.
  • The validate extra is optional by design: src/python_sbom/_validate/_document.py:98-107 checks find_spec and raises MissingExtraError (a SbomError, printed by _cli/_main.py without 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, so validate does not work in Debian, but it fails cleanly as upstream documents.
  • sid in debian/changelog is an accepted distribution name: devscripts' /usr/bin/dch accepts experimental|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, packaged 0.5.0).
  • Every pointer of debian/copyright to /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 from pyproject.toml, debian/python3-python-sbom.examples and 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.

Back to Dashboard | View all reviews for this package