# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-aniso8601
version             6.0.0
revision            0

categories-append   devel textproc
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         A library for parsing ISO 8601 strings
long_description    ${description}

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

checksums           rmd160  d552fc8e5d64614aed300054482f9b6cab4ff41a \
                    sha256  b8a6a9b24611fc50cf2d9b45d371bfdc4fd0581d1cc52254f5502130a776d4af \
                    size    36429

python.versions     27 34 35 36 37

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

    if {${python.version} eq 27} {
        depends_test-append port:py${python.version}-mock
    }
    test.run        yes
    test.cmd        ${python.bin} setup.py
    test.target     test
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
       xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
          ${destroot}${prefix}/share/doc/${subport}
       }

    livecheck.type  none
}