# -*- 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.7.1
revision            0

categories-append   gis

platforms           {darwin any}
supported_archs     noarch
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/

checksums           rmd160  73817b94e5a4af5e2369588cd7f4b81b607df649 \
                    sha256  0cd5e87ae1f3dfd5b284131fc8eb7595ff0fa03ee590ab9be4a1df86853ea36d \
                    size    25941037

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
    }
}
