You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
46 lines
1.4 KiB
Tcl
46 lines
1.4 KiB
Tcl
# -*- 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-tz
|
|
python.rootname pytz
|
|
version 2026.2
|
|
revision 0
|
|
|
|
categories-append devel
|
|
supported_archs noarch
|
|
platforms {darwin any}
|
|
license MIT
|
|
maintainers nomaintainer
|
|
|
|
description World Timezone Definitions for Python
|
|
long_description pytz brings the Olson tz database into Python. This library allows \
|
|
accurate and cross platform timezone calculations.
|
|
|
|
homepage https://pypi.python.org/pypi/pytz
|
|
|
|
checksums rmd160 4068a2e2e9658e3d3ae7a4f97f3a9986e1240952 \
|
|
sha256 0e60b47b29f21574376f218fe21abc009894a2321ea16c6754f3cad6eb7cdd6a \
|
|
size 320861
|
|
|
|
python.versions 27 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
if {${python.version} == 27} {
|
|
conflicts py${python.version}-tz-gae
|
|
}
|
|
|
|
test.run yes
|
|
python.test_framework
|
|
test.dir ${build.dir}/pytz/tests
|
|
test.cmd ${python.bin} test_lazy.py && ${python.bin} test_tzinfo.py
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W $worksrcpath LICENSE.txt README.rst \
|
|
${destroot}${docdir}
|
|
}
|
|
}
|