# -*- 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-forked
version             1.3.0
revision            0

categories-append   devel
platforms           darwin
license             MIT
maintainers         nomaintainer

description         run tests in isolated forked subprocesses
long_description    ${description}

homepage            https://github.com/pytest-dev/pytest-forked
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  98a3298258979cc2ec39134b7ba74e0cda9cc205 \
                    sha256  6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca \
                    size    9850

python.versions     27 35 36 37 38 39

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

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

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

    livecheck.type  none
}
