# -*- 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-async-geotiff
python.rootname     async_geotiff
version             0.4.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Fast, async GeoTIFF and Cloud-Optimized GeoTIFF (COG) reader for \
                    Python, wrapping the Rust-based Async-TIFF library.
long_description    {*}${description}
homepage            https://github.com/developmentseed/async-geotiff

checksums           rmd160  af7dc3cb2ada57a90893c736b5fb83a33a0da6ca \
                    sha256  2386cc72e1e66cb36fdb296c6ef3100ba4c5e086950f0ce691f1a86d164fda7b \
                    size    26058

python.versions     311 312 313 314

python.pep517_backend \
                    uv

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-affine \
                    port:py${python.version}-async-tiff \
                    port:py${python.version}-defusedxml \
                    port:py${python.version}-numpy \
                    port:py${python.version}-morecantile

    patchfiles      patch-pyproject.toml.diff
}
