# -*- 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-momepy
version             0.10.0
revision            0

categories-append   gis

platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Urban Morphology Measuring Toolkit (momepy)
long_description    The PySAL momepy package is a library for quantitative \
                    analysis of urban form - urban morphometrics.

homepage            https://docs.momepy.org/en/stable/

checksums           rmd160  b8030a433d4cb0bea20e7042ecf75521f7c78375 \
                    sha256  d7b62de1ee420518491ce3cd2bc21815a149cc2a5e6132f122486e8542a74248 \
                    size    30085049

python.versions     310 311 312 313

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

    depends_run-append \
                    port:py${python.version}-geopandas \
                    port:py${python.version}-libpysal \
                    port:py${python.version}-networkx \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pandas \
                    port:py${python.version}-shapely \
                    port:py${python.version}-tqdm

    if {${python.version} == 39} {
        version     0.6.0
        revision    0
        checksums   rmd160  b4702f95870fbfd48bd4c54f621528fa517ae979 \
                    sha256  b52cb4e957c0407bd28d7ef260da0288a0c1666e206726eafd12d5976156d42b \
                    size    21673690
    } elseif {${python.version} == 310} {
        version     0.9.1
        revision    0
        checksums   rmd160  05f9904e5271a78fb724cca71ad55d190a0a9aa0 \
                    sha256  12da07e606ee695b216e506e4cc3d6ab386328bec27acc9d694ac5dd71376ff4 \
                    size    30084606
    }
}
