# -*- 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-sugar
version             0.9.4
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         ${name} changes the default look and feel of pytest \
                    (progressbar, show tests that fail instantly).

long_description    {*}${description}

homepage            http://pivotfinland.com/pytest-sugar/

checksums           rmd160  71aab612ea3d22b2d6180037186108502c889d58 \
                    sha256  b1b2186b0a72aada6859bea2a5764145e3aaa2c1cfbb23c3a19b5f7b697563d3 \
                    size    12727

python.versions     37 38 39

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

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

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

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

    livecheck.type  none
}
