# -*- 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-metadata
version             1.11.0
revision            0
categories-append   devel

license             MPL-2
maintainers         nomaintainer
platforms           darwin

description         Plugin for accessing test session metadata

long_description    pytest-metadata is a plugin for pytest that\
                    provides access to test session metadata.

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

checksums           rmd160  c1eb294aef6c925c4e508d276f31f656cfe5e6c1 \
                    sha256  71b506d49d34e539cc3cfdb7ce2c5f072bea5c953320002c95968e0238f8ecf1 \
                    size    14135

supported_archs     noarch

python.versions     27 36 37 38 39

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

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

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

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
