Files
2026-03-24 20:47:42 -04:00

61 lines
1.9 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-dateutil
python.rootname python-dateutil
version 2.9.0.post0
revision 0
platforms {darwin any}
supported_archs noarch
license BSD
maintainers nomaintainer
description Extensions to the standard Python datetime module
long_description The dateutil module provides powerful extensions \
to the datetime module available in the Python \
standard library.
homepage https://github.com/dateutil/dateutil/
checksums rmd160 851f5c2fac0997c3c45c7a137e3df985f03adaf2 \
sha256 37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
size 342432
python.versions 27 39 310 311 312 313 314
if {${name} ne ${subport}} {
patchfiles-append \
patch-setuptools_command_test_gone.diff \
patch-setuptools_scm_version.diff \
patch-test_no_pytest-cov.diff
depends_build-append \
port:py${python.version}-setuptools \
port:py${python.version}-setuptools_scm
depends_run-append \
path:${python.pkgd}/pytz:py${python.version}-tz
depends_lib-append \
port:py${python.version}-six
if {${python.version} > 39} {
depends_test-append \
port:py${python.version}-freezegun \
port:py${python.version}-hypothesis
test.run yes
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} \
LICENSE README.rst NEWS \
${destroot}${docdir}
}
}