# -*- 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     39 310 311 312 313

if {${name} ne ${subport}} {
    if {${python.version} < 39} {
        version     3.6.1
        revision    0
        checksums   rmd160  61ce6afcd67bc6ec2c8021cb5710e35a5e22abcc \
                    sha256  ead156a4db231eec769737f57668ef58a2084a34b2e55c4a8fa20d861107300d \
                    size    84060
    }
    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}
    }
}
