# -*- 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-ddt
version             1.4.2
revision            0
platforms           darwin
license             MIT
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         Data-Driven/Decorated Tests
long_description    A library to multiply test cases

homepage            https://pypi.python.org/pypi/${python.rootname}/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  21e77bcc88cb2011fa372dec8d2aedeef0108921 \
                    sha256  64a67366a2715e636b88694cc6075cc02db292f01098b8e385397c894d395378 \
                    size    11467

python.versions     27 35 36 37 38 39

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

    if {${python.version} eq 27} {
        depends_lib-append \
                    port:py${python.version}-enum34
    }

    depends_test-append port:py${python.version}-mock \
                        port:py${python.version}-nose \
                        port:py${python.version}-pytest \
                        port:py${python.version}-six \
                        port:py${python.version}-yaml
    test.run            yes
    test.env            PYTHONPATH=${worksrcpath}/build/lib:${worksrcpath}
    test.cmd            nosetests-${python.branch}
    test.target         test/test_example.py test/test_functional.py

    livecheck.type  none
}
