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

name                py-cfgrib
revision            0

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

description         Python interface to map GRIB files to the NetCDF Common Data Model \
    following the CF Convention using ecCodes
long_description    {*}${description}

checksums           rmd160  976aa36b3c3a8512564929fd0fe3bb7df6a24218 \
                    sha256  d3f01ec30d2cfaf0a955d54a5ad5ce1eee3c6846b7272ed5efcfa0eca98fe2cf \
                    size    6378445

python.versions     310

python.pep517       yes

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-click \
                    port:py${python.version}-eccodes \
                    port:py${python.version}-numpy \
                    port:py${python.version}-xarray
}
