# -*- 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-pyviz_comms
version             3.0.6
revision            0

categories-append   devel
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Offers a simple bidirectional communication architecture for PyViz \
                    tools including support for Jupyter comms in both the classic \
                    notebook and Jupyterlab.
long_description    {*}${description}
homepage            https://github.com/holoviz/pyviz_comms

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  f1fe1cb6198c616bae40023b0f52762cf0704cb0 \
                    sha256  73d66b620390d97959b2c4d8a2c0778d41fe20581be4717f01e46b8fae8c5695 \
                    size    197772

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:git \
                    port:py${python.version}-hatch-jupyter-builder \
                    port:py${python.version}-hatch-nodejs-version

    depends_lib-append  \
                    port:py${python.version}-jupyterlab \
                    port:py${python.version}-jupyterlab_pygments
}
