# -*- 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.0
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  7c7a63b6523217ff710ed91b3c45a308d255bcd1 \
                    sha256  db9eee1579678a2eec6974c831dc93abf612a4df5a3c45e9d7ed35ea5f9e2497 \
                    size    6776607

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