# -*- 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-pyproject_api
version             1.10.1
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         API to interact with the python pyproject.toml based projects
long_description    {*}${description}
homepage            https://github.com/tox-dev/pyproject-api

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  cd2f3c4a4a9ca1c973493133019e5ed6023e3307 \
                    sha256  c2b2726bd7aa9217b6c50b621fef5b2ae5def4d55b779c9e0694c15e0a8517ba \
                    size    23477

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

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

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