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

checksums           rmd160  8ad04ab28aed5de651b589d4fd09db88a126adee \
                    sha256  72e3117667eedf66951bb2d93f4296a56b94b078a8a95905a052611fb3f1b973 \
                    size    47345

python.versions     27 37 38 39

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
    }
    post-destroot {
       xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
          ${destroot}${prefix}/share/doc/${subport}
       }

    test.run        yes
    test.cmd        ${python.bin} setup.py
    test.target     test
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
