# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-python-sbom
python.rootname     python_sbom
version             0.3.1
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         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 toolc
long_description    {*}${description} 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.
homepage            https://github.com/tox-dev/python-sbom

checksums           rmd160  f4064cad443ddbcc20465931462387898f0fc18b \
                    sha256  37d0fa3d0a16fddc3d88099e147e164ddb3055e8bc3424506ef41dd80f723a73 \
                    size    289516

python.versions     311 312 313 314 315

python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-fancy-pypi-readme \
                    port:py${python.version}-hatch-vcs

    depends_lib-append  \
                    port:py${python.version}-packageurl-python \
                    port:py${python.version}-zipremove
}
