# -*- 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-contextily
version             1.6.2
revision            0

categories-append   gis
license             BSD
homepage            https://github.com/geopandas/contextily
maintainers         nomaintainer

description         context geo tiles in Python
long_description \
    contextily is a small Python package to retrieve tile maps from the internet.\
    It can add those tiles as basemaps to matplotlib figures or write tile maps to\
    disk into geospatial raster files. Bounding boxes can be passed in both WGS84\
    and Spheric Mercator.

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  19008893e9dd19b05263b18d3ac35d0c4219c33f \
                    sha256  3c747925269be248a9b1a761859e05d1681286e04d5d0796bdaf1de3409474bb \
                    size    22461478

python.versions     38 39 310 311 312

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

    depends_lib-append      port:py${python.version}-geopy \
                            port:py${python.version}-joblib \
                            port:py${python.version}-matplotlib \
                            port:py${python.version}-mercantile \
                            port:py${python.version}-numpy \
                            port:py${python.version}-pillow \
                            port:py${python.version}-rasterio \
                            port:py${python.version}-requests \
                            port:py${python.version}-xyzservices

    if {${python.version} == 38} {
        version     1.5.2

        checksums   rmd160  1d734976de43e4ddd8cde3779437a56713cbacbf \
                    sha256  1cd9270b82433ae8211fe161428fc9c88a4a33b18a81df36ede897ea23486249 \
                    size    22461450
    }
}
