# -*- 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.2.1
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  1b0cd3b0db7826db8865aaec63a4f9ca41b0e485 \
                    sha256  25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2 \
                    size    69432

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