# -*- 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                holoviews
version             1.20.2
revision            0
categories-prepend  science
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         HoloViews is an open-source Python library designed to make data \
                    analysis and visualization seamless and simple.
long_description    {*}${description} With HoloViews, you can usually express what you \
                    want to do in very few lines of code, letting you focus on what you \
                    are trying to explore and convey, not on the process of plotting.
supported_archs     noarch
platforms           {darwin any}
homepage            https://github.com/holoviz/holoviews

checksums           rmd160  baf202c7ca731cabc975136dd2fa0997aa1e92cd \
                    sha256  8c78b798601ce3af31523667c6d1cb40df8d781249ebebbdb2c5f6143565e6d8 \
                    size    4592575

variant python310 conflicts python311 python312 python313 description {Use Python 3.10} {}
variant python311 conflicts python310 python312 python313 description {Use Python 3.11} {}
variant python312 conflicts python310 python311 python313 description {Use Python 3.12} {}
variant python313 conflicts python310 python311 python312 description {Use Python 3.13} {}

if {![variant_isset python310] && ![variant_isset python311] && ![variant_isset python312]} {
        default_variants +python313
}

foreach pv {313 312 311 310} {
    if {[variant_isset python${pv}]} {
        python.default_version ${pv}
        break
    }
}

python.pep517_backend \
                    hatch

depends_build-append \
                    port:py${python.version}-hatch-vcs 

depends_lib-append  port:py${python.version}-bokeh \
                    port:py${python.version}-colorcet \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-notebook \
                    port:py${python.version}-pandas \
                    port:py${python.version}-panel \
                    port:py${python.version}-param \
                    port:py${python.version}-pyct \
                    port:py${python.version}-pyviz_comms