# -*- 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-pytest-xdist
python.rootname     pytest_xdist
version             3.8.0
revision            0

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

description         The ${python.rootname} plugin extends py.test with some unique test execution modes
long_description    {*}${description}

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

checksums           rmd160  c9ad106ff930376ecfee16f031c4130f24b13d89 \
                    sha256  7e578125ec9bc6050861aa93f2d59f1d8d085595d6551c2c90b6f4fad8d3a9f1 \
                    size    88069

python.versions     310 311 312 313 314

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

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

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