# -*- 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.2.1
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  635a7bf90e2d5cb89c3731e84d8d4f5587f152a3 \
                    sha256  d13e6af8f36238e89d00f4ebccf2bda4f6d1878be560a6600689e42077e164e3 \
                    size    8981

python.versions     27 34 35 36 37

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

    depends_test-append port:py${python.version}-mock \
                        port:py${python.version}-nose \
                        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
}