# -*- 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.6.1
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  61ce6afcd67bc6ec2c8021cb5710e35a5e22abcc \
                    sha256  ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d \
                    size    84060

python.versions     37 38 39 310 311 312 313

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