# -*- 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.21.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  2df3a17160d980d20391482c25ed8f3b57c8004a \
                    sha256  2b955f6775b7f641c8094d00bc4381492184ba162b5dba1baa69df8db98efa5f \
                    size    76836

python.versions     310 311 312 313 314

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}-rasterio \
                    port:py${python.version}-simplejson \
                    port:py${python.version}-shapely

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