# -*- 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-aniso8601
version             10.0.1
revision            0

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

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

homepage            https://bitbucket.org/nielsenb/aniso8601

checksums           rmd160  27f540a7f425bd4ba97758d7bd78be0fc96cc334 \
                    sha256  25488f8663dd1528ae1f54f94ac1ea51ae25b4d531539b8bc707fed184d16845 \
                    size    47190

python.versions     310 311 312 313 314

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

    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
    python.test_framework
    test.cmd        ${python.bin} setup.py
}
