# -*- 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.3.1
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  60f01e113191ba45f36344e4f7c62b5741cb85c9 \
                    sha256  cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd \
                    size    30761

python.versions     310 311 312 313 314

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}
    }
}
