# -*- 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-html
version             4.1.1
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MPL-2
maintainers         nomaintainer

description         Plugin for generating HTML reports for pytest results
long_description    pytest-html is a plugin for pytest that generates\
                    a HTML report for the test results.

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

distname            pytest_html-${version}

checksums           rmd160  319e1c8c50a448c8cfc53027407bd2a004eb9acd \
                    sha256  70a01e8ae5800f4a074b56a4cb1025c8f4f9b038bba5fe31e3c98eb996686f07 \
                    size    150773

python.versions     310 311 312 313
python.pep517_backend hatch

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

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

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