# -*- 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.3
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  5c841389564178ecc05b6fb3891c9dcb49988b4e \
                    sha256  696a4a00a2a2a35d4e5deb3fc946641b96c944f02230e4f76137fe35d806c4fc \
                    size    4651414

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)
}
