# -*- 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-arrow
version             1.3.0
revision            1

supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         Better dates and times for Python
long_description    Arrow is a Python library that offers a sensible \
                    and human-friendly approach to creating, manipulating, \
                    formatting and converting dates, times and timestamps. \
                    It implements and updates the datetime type, plugging gaps \
                    in functionality and providing an intelligent module API that \
                    supports many common creation scenarios.

homepage            https://arrow.readthedocs.io

checksums           rmd160  b02880dc427d5e381fee11d9635efa9f88277aee \
                    sha256  d4540617648cb5f895730f1ad8c82a65f2dad0166f57b75f3ca54759c4d67a85 \
                    size    131960

compiler.cxx_standard 2011

python.versions     38 39 310 311 312
python.pep517_backend flit

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-types-python-dateutil

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} CHANGELOG.rst LICENSE \
            README.rst ${destroot}${prefix}/share/doc/${subport}
    }
}
