# -*- 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-apipkg
version             3.0.2
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         namespace control and lazy-import mechanism
long_description    {*}${description}

homepage            https://github.com/pytest-dev/apipkg

checksums           rmd160  ec94a329119e8540351e0b2c33c8a036fe1c8c65 \
                    sha256  c7aa61a4f82697fdaa667e70af1505acf1f7428b1c27b891d204ba7a8a3c5e0d \
                    size    6594

python.versions     310
python.pep517_backend hatch

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

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            ${destroot}${prefix}/share/doc/${subport}
    }

    test.run        yes
}
