# -*- 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-cov
version             6.3.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Pytest plugin for measuring coverage.
long_description    {*}${description}

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

distname            pytest_cov-${version}

checksums           rmd160  37179c585932bbdf1c7d6ea6a10d9413422bdd4b \
                    sha256  35c580e7800f87ce892e687461166e1ac2bcb8fb9e13aea79032518d6e503ff2 \
                    size    70398

python.versions     39 310 311 312 313

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

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

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