# -*- 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-fixture-config
version             1.7.0
revision            0
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Fixture configuration utils for py.test

long_description    Simple configuration objects for Py.test \
                    fixtures. Allows you to skip tests when their \
                    required config variables aren’t set.

homepage            https://github.com/manahl/pytest-plugins

checksums           rmd160  e64e907c7751d57e624d8d4f98dd35884f9a8b43 \
                    sha256  41a17417721f6862ce6b40e3280fddd8e1659b2c306ec46b237d7021fec5218e \
                    size    9884

python.versions     37 38

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

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

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

    depends_test-append \
                    port:py${python.version}-six

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

    test.run        yes
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
