# -*- 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-libpysal
version             4.15.1
revision            0

categories-append   gis
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Core components of PySAL
long_description    {*}${description}, a library of spatial analysis functions.
homepage            https://pysal.org

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  69dff0e4acc0277ca91a7b4d4c8f7bbfb86297e2 \
                    sha256  df4d91e93b6cdf3c9d3a47ae9c0ce6efa85502b227496a36178facafd594c4d1 \
                    size    6778262

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

    variant plus description {build with optional dependencies} {
        depends_lib-append  \
                    port:py${python.version}-joblib \
                    port:py${python.version}-networkx \
                    port:py${python.version}-numba \
                    port:py${python.version}-pandarm \
                    port:py${python.version}-pulp \
                    port:py${python.version}-pyarrow \
                    port:py${python.version}-sqlalchemy \
                    port:py${python.version}-xarray \
                    port:py${python.version}-zstd
    }
}
