# -*- 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-rasterstats
version             0.22.0
revision            0

categories-append   gis
license             BSD
maintainers         nomaintainer
description         rasterstats is a Python module for summarizing geospatial raster datasets
long_description    {*}${description} based on vector geometries. It includes functions for \
                    zonal statistics and interpolated point queries.
homepage            https://pythonhosted.org/rasterstats/

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  b912787997dd8522257342d79d0ed85cda347a63 \
                    sha256  884fef12cc11ddb7c29fbc24a1a62ba05bcfe4c299ec2ac4389f359d90ac236b \
                    size    77809

python.versions     310 311 312 313 314 315

python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-affine \
                    port:py${python.version}-click \
                    port:py${python.version}-cligj \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pyogrio \
                    port:py${python.version}-rasterio \
                    port:py${python.version}-simplejson \
                    port:py${python.version}-shapely \
                    port:py${python.version}-tqdm

    if {${python.version} < 314} {
        depends_run-append \
                    port:py${python.version}-fiona
    }
}
