# -*- 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-sure
version             2.0.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             GPL-3+
maintainers         nomaintainer

description         Utility belt for automated testing in python for python
long_description    {*}${description}

homepage            https://github.com/gabrielfalcao/sure

checksums           sha256  34ae88c846046742ef074036bf311dc90ab152b7bc09c342b281cebf676727a2 \
                    rmd160  5a20615bf48f287c322c9b17f651ffd8ac680a1b \
                    size    46747

python.versions     310

if {${name} ne ${subport}} {
    # See https://github.com/gabrielfalcao/sure/issues/169
    patchfiles      patch-fix-python310.diff

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

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

    test.run        yes
}
