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

python.versions     39 310 311 312 313
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  24f8f1cd5a4be119b9a29d47a647ac002d06b0fc \
                    sha256  e05e1af93b977f7eafa636d043f9f94c7ee3ac81af99c13508215942e64c993b \
                    size    4495223

if {${name} ne ${subport}} {
    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 \
                        port:py${python.version}-tz \
                        port:py${python.version}-pytzdata

    # 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}
    build.env-append    PATH=${python.prefix}/bin:$::env(PATH)
}
