# -*- 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-isodate
version             0.6.1
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {gmail.com:esafak @esafak}

description         An ISO 8601 date/time/duration parser and formatter
long_description    This module implements ISO 8601 date, time and duration \
                    parsing. The implementation follows ISO8601:2004 standard, \
                    and implements only date/time representations mentioned in \
                    the standard. If something is not mentioned there, then it \
                    is treated as non existent, and not as an allowed option.

homepage            https://pypi.python.org/pypi/${python.rootname}

checksums           rmd160  b1ab88fc360f333f91aaee8ff30c63b695179188 \
                    sha256  48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9 \
                    size    28443

python.versions     39 310 311 312 313

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

    test.run        yes
    test.cmd        ${python.bin} setup.py test
    test.target

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} CHANGES.txt MANIFEST.in \
            README.rst TODO.txt ${destroot}${prefix}/share/doc/${subport}
    }
}
