# -*- 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-pandas
version             3.0.5
revision            0
categories-append   science
license             BSD

python.versions     310 311 312 313 314
python.pep517_backend   meson

maintainers         {stromnov @stromnov} openmaintainer

description         Powerful data structures for data analysis and statistics

long_description    {*}${description}

homepage            https://pandas.pydata.org

checksums           rmd160  260b41a982b42576b01e0b82af72c55051fe6839 \
                    sha256  dca3734d6ab7c906e6730f0788b0a1dbb9f2467731f9711f77995c8e9d62d712 \
                    size    4658219

if {${name} ne ${subport}} {
    if {${python.version} == 310} {
        version     2.3.3
        revision    0
        checksums   rmd160  24f8f1cd5a4be119b9a29d47a647ac002d06b0fc \
                    sha256  e05e1af93b977f7eafa636d043f9f94c7ee3ac81af99c13508215942e64c993b \
                    size    4495223

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

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

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

    # error: static_assert failed "Overflow checking not detected; please try a newer compiler"
    compiler.blacklist-append \
                {clang < 800} *gcc-3.* *gcc-4.*

    build.env-append    CYTHON=${prefix}/bin/cython-${python.branch} \
                        PATH=${python.prefix}/bin:$::env(PATH)

    livecheck.type  none
}
