# -*- 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-spaghetti
version             1.7.6
revision            0

categories-append   gis

platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Spatial graphs: networks, topology and inference (spaghetti)
long_description    The PySAL {*}${description} package is an open-source Python \
                    library for the analysis of network-based spatial data.

homepage            https://pysal.org/spaghetti/

checksums           rmd160  58c1767f2a45f8a5596be15a3164da8d28e7b73d \
                    sha256  c9beddbb3bf285e88745d36aee886c78ac6e6a416f0f9b1a441265c8c08f923d \
                    size    22156350

python.versions     39 310 311 312 313

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

    depends_run-append \
                    port:py${python.version}-esda \
                    port:py${python.version}-geopandas \
                    port:py${python.version}-libpysal \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-rtree \
                    port:py${python.version}-scipy \
                    port:py${python.version}-shapely

    if {${python.version} == 39} {
        version     1.7.4
        revision    0
        checksums   rmd160  092dd6c9e7abc9fcba7b03044a11124d828c6c9c \
                    sha256  9898ea86744b6ced9923f8bc213964045615f31ce14f304d20db0aecca40728d \
                    size    22151842
    }
}