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

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         A goodie-bag of unix shell and environment tools for \
                    py.test

long_description    This library is a goodie-bag of Unix shell and \
                    environment management tools for automated \
                    tests. A summary of the available functions is \
                    below, look at the source for the full listing.

homepage            https://github.com/man-group/pytest-plugins

checksums           rmd160  869b11f66cfd12c0ee18afee4b825a8a35361a4f \
                    sha256  d8165261de76e7508505c341d94c02b113dc963f274543abca74dbfabd021261 \
                    size    23497

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}-contextlib2 \
                    port:py${python.version}-execnet \
                    port:py${python.version}-mock \
                    port:py${python.version}-path \
                    port:py${python.version}-pytest \
                    port:py${python.version}-six \
                    port:py${python.version}-termcolor

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

    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.cmd        py.test-${python.branch}
    test.target     tests
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
