# -*- 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.2.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  1a9650a77df203ea1562739bf3c173bb2528ae2d \
                    sha256  4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667 \
                    size    4399213

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

    patchfiles-append   patch-pyproject.toml.diff

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