# -*- 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 1.5.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

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  59036167f44440de82f6f470aa5a6ef0d743abe6 \
                    sha256  b604bdda844cbd3152f0cf693d901d2f390fcf570feea2fca516ae3feb2aa8c3 \
                    size    2253463

python.versions     310

python.pep517       yes

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
}
