# -*- 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-pendulum
version             3.0.0
revision            0

license             MIT
maintainers         nomaintainer
description         Python datetimes made easy
long_description    Pendulum is a Python package to ease datetimes \
                    manipulation. It provides classes that are drop-in \
                    replacements for the native ones (they inherit from them).

python.versions     39 310 311 312

homepage            https://pypi.python.org/pypi/${python.rootname}/

checksums           rmd160  d5eb8e2bf792c65bacde178fcedb2f516a049ccc \
                    sha256  5d034998dea404ec31fae27af6b22cff1708f830a1ed7353be4d1019bb9f584e \
                    size    84524

if {${name} ne ${subport}} {
    python.pep517_backend   maturin
    # https://trac.macports.org/ticket/64425
    build.cmd       pyproject-build-${python.branch} --wheel --no-isolation --outdir ${workpath}

    depends_build-append    port:py${python.version}-wheel

    depends_lib-append      port:py${python.version}-dateutil \
                            port:py${python.version}-pytzdata
}