# -*- 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-rednose
version             1.3.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         pretty output formatter for python-nosetests
long_description    \
    rednose is a nosetests plugin for adding colour (and readability) to \
    nosetest console results.
homepage            https://github.com/JBKahn/rednose

checksums           rmd160  548a63d7bc32ae9423660647ecc9fdaaceefd03b \
                    sha256  6da77917788be277b70259edc0bb92fc6f28fe268b765b4ea88206cc3543a3e1 \
                    size    10299

python.versions     310

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

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

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