# -*- 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-xarray
version             2026.4.0
revision            0

categories-append   science math
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {petr @petrrr} openmaintainer

description         Provides N-D labeled arrays and datasets in Python
long_description    \
    xarray (formerly xray) is an open source project and Python package that \
    aims to bring the labeled data power of pandas to the physical sciences, \
    by providing N-dimensional variants of the core pandas data structures.

homepage            https://github.com/pydata/xarray

checksums           rmd160  539247bb31fe77f524a0a09ccf595ac5892457f0 \
                    sha256  c4ac9a01a945d90d5b1628e2af045099a9d4943536d4f2ee3ae963c3b222d15b \
                    size    3132311

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

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

    test.run        yes

    depends_test-append \
                    port:py${python.version}-hypothesis \
                    port:py${python.version}-pytest-xdist \
                    port:py${python.version}-pytest-asyncio \
                    port:py${python.version}-cftime
}
