# -*- 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-discovery
version             1.9.9
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python interpreter discovery
long_description    {*}${description}

homepage            https://github.com/tox-dev/python-discovery

distname            python_discovery-${version}

checksums           rmd160  26de19ba0194a403537c26f3e3a6670d40d990aa \
                    sha256  6dfa5a9d3bb478eaf4f4e6afe55dc8367ec4bcca61715c7f5542d3c5b2df51e8 \
                    size    153198

python.versions     310 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

    if {${python.version} > 310} {
        depends_build-append \
                    port:py${python.version}-python-sbom
    }

    depends_lib-append \
                    port:py${python.version}-filelock \
                    port:py${python.version}-platformdirs
}
