# -*- 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.9.0
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

checksums           rmd160  30fceee296fcf3411be99dbae5a7b2a35757b364 \
                    sha256  7e8a9854b2dfb49454fae421cb86af43efbb2b2454e5646ffb7623540321ae6e \
                    size    22714

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    python.pep517_backend \
                        hatch

    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
    }
}
