# -*- 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-tzlocal
version             5.2
revision            0
license             MIT
supported_archs     noarch
platforms           {darwin any}

maintainers         nomaintainer

description         tzinfo object for the local timezone
long_description    This Python module returns a tzinfo object with the local \
                    timezone information under Unix and Win-32. It requires \
                    pytz, and returns pytz tzinfo objects.

homepage            https://github.com/regebro/tzlocal

checksums           rmd160  ee3e2e6c9788bf763afe34d27ab35c12d9e745a4 \
                    sha256  8d399205578f1a9342816409cc1e46a93ebd5755e39ea2d85334bea911bf0e6e \
                    size    30201

python.versions     39 310 311 312 313

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

    depends_test-append \
                    port:py${python.version}-pytest-mock

    test.run        yes

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