# -*- 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.10.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  4060cf2aaa6331db9fb5b6ea68593344ca83e508 \
                    sha256  2dad5b73d8408bc2fe5fff95524a38b98552e09cc494df5010649f8f12019ea5 \
                    size    19423383

python.versions     310 311 312 313 314

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} == 311} {
        version         2.9.0
        revision        0
        checksums       rmd160  454c4b846f79f096d3272849c9fc562140706885 \
                        sha256  90ec966c54e5ceb826fe0cedd7b335232862252b89cc9d1dbaa3e07a5fc9845a \
                        size    27476025
    }

    if {${python.version} == 310} {
        version         2.7.0
        revision        0
        checksums       rmd160  fda87cf2375142b6fa1c5cf2b590e13751fef64b \
                        sha256  e3167aa1f010a377c5b4b457ea6f91d126816a1070fa48a4e048e9f8633082f5 \
                        size    44185102
    }
}
