# -*- 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

set real_name       pytools

name                py-${real_name}
version             2017.6
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         A collection of tools for Python
long_description    Pytools is a big bag of things that are 'missing' \
                    from the Python standard library.

homepage            https://pypi.python.org/pypi/${real_name}
master_sites        pypi:p/${real_name}
distname            ${real_name}-${version}

checksums           rmd160  67f3250237ca2472a0ffbd140056aea607e7f92a \
                    sha256  80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115

python.versions     27 35 36

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/${python.rootname}/json
    livecheck.regex     "\"${python.rootname}-(\[.\\d\]+)\\${extract.suffix}\""
}