# -*- 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-h5netcdf
version             1.8.1
revision            0

categories-append   science
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         A Python interface for the netCDF4 file-format
long_description    {*}${description} that reads and writes local or remote HDF5 files \
                    directly via h5py or h5pyd, without relying on the Unidata netCDF \
                    library.
homepage            https://github.com/h5netcdf/h5netcdf

supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

checksums           rmd160  0cb4aae6e230b484a6928b1f33f91da95473b2d7 \
                    sha256  9b396a4cc346050fc1a4df8523bc1853681ec3544e0449027ae397cb953c7a16 \
                    size    78679

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

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