# -*- 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-pyogrio
version             0.11.1
revision            1
categories-append   science gis
license             MIT

python.versions     39 310 311 312 313

maintainers         nomaintainer

description         Bulk-oriented spatial vector file I/O using GDAL/OGR

long_description    Pyogrio provides fast, bulk-oriented read and write access\
                    to GDAL/OGR vector data sources, such as ESRI Shapefile,\
                    GeoPackage, GeoJSON, and several others. Vector data sources\
                    typically have geometries, such as points, lines, or polygons,\
                    and associated records with potentially many columns worth of data.

homepage            https://pyogrio.readthedocs.io/

checksums           rmd160  60e93296dca0aa7d7fcf85f000b4120a6597a5b2 \
                    sha256  e1441dc9c866f10d8e6ae7ea9249a10c1f57ea921b1f19a5b0977ab91ef8082c \
                    size    287267

patchfiles-append   patch_pyproject.diff

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

    depends_lib-append \
                    port:py${python.version}-certifi \
                    port:gdal \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging
}
