# -*- 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
PortGroup           github 1.0

github.setup        ecmwf eccodes-python 2.45.0
github.tarball_from archive

name                py-eccodes
revision            0

categories-append   science
supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer

description         Python interface to the ecCodes GRIB and BUFR decoder/encoder
long_description    {*}${description}

checksums           rmd160  79120846c6ea006d9845c0f3d6a36507d383ff5b \
                    sha256  05f1ee6d9647fbd7fc1f601027ab129e0ccf749b6069e2e47a7365ff63bb6860 \
                    size    2459859

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:ecCodes \
                    port:py${python.version}-attrs \
                    port:py${python.version}-cffi \
                    port:py${python.version}-findlibs \
                    port:py${python.version}-numpy
}
