# -*- 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
PortGroup           select 1.0

name                py-hatchling
version             1.31.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         This is the extensible, standards compliant build backend used by Hatch.
long_description    {*}${description}
homepage            https://hatch.pypa.io/latest/

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  39d616933f1d2a56bb356bdc3ecb10c725a4794b \
                    sha256  6b48ad4068a482ed7239b3a8215bc55b47aad3345d58dfc94e553c5d2d46211b \
                    size    57208

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    # Bootstraps itself, no backend dependencies needed
    python.pep517_backend

    depends_lib-append  \
                    port:py${python.version}-editables \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pathspec \
                    port:py${python.version}-pluggy \
                    port:py${python.version}-trove-classifiers

    depends_run-append \
                    port:hatchling_select

    select.group    hatchling
    select.file     ${filespath}/py${python.version}-hatchling

    if {${python.version} < 311} {
        depends_lib-append  \
                    port:py${python.version}-tomli
    }
}
