# -*- 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-execnet
version             2.1.1
revision            0

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

description         rapid multi-Python deployment
long_description    {*}${description}

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

checksums           rmd160  cea522c66de38a8f42ff1a2eb69fc9ae2c1d4f03 \
                    sha256  5189b52c6121c24feae288166ab41b32549c7e2348652736540b9e6e7d4e72e3 \
                    size    166524

python.versions     37 38 39 310 311 312 313

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

    depends_build-append \
                    port:py${python.version}-hatch-vcs

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