# -*- 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.4.4
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  1b53272d56acee3175618693cbd39fef49ce0b06 \
                    sha256  8dbb8660838688a7b6ba4fed31d18dedf842afb4d47ca050d6d891c2c15f3be4 \
                    size    31170

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