# -*- 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-esda
version             2.8.0
revision            0

categories-append   gis
license             BSD
maintainers         nomaintainer
description         Exploratory Spatial Data Analysis in PySAL (esda)
long_description    {*}${description} is an open-source Python library for the exploratory \
                    analysis of spatial data.
homepage            https://pysal.org/esda/

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  c4385956a692d18dc5f279ec10a27803a4908305 \
                    sha256  e86da2985d75bff31f351749491373411dc87fd97549006111c105173d25425c \
                    size    26452351

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}-geopandas \
                    port:py${python.version}-libpysal \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-scikit-learn \
                    port:py${python.version}-scipy \
                    port:py${python.version}-shapely

    if {${python.version} == 39} {
        version         2.5.1
        revision        0
        checksums       rmd160  d37ca054d370605fb0fee9439cc5fb88f6b5f56d \
                        sha256  b1f0ac023b3a55dbdbad34a98eae6af2c7d2b3cc7a14ea884dfef51819c04c28 \
                        size    44173327

        depends_run-delete \
                        port:py${python.version}-geopandas \
                        port:py${python.version}-shapely
    } elseif {${python.version} == 310} {
        version         2.7.0
        revision        0
        checksums       rmd160  fda87cf2375142b6fa1c5cf2b590e13751fef64b \
                        sha256  e3167aa1f010a377c5b4b457ea6f91d126816a1070fa48a4e048e9f8633082f5 \
                        size    44185102
    }
}
