# -*- 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.5
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  c9e04afb7b15bf2132b2239601aecd2a5a6132a1 \
                    sha256  fb0df8c2d14b6f0a2db33e4c2ef464adc43a254d884f6480a13ec3b47a7a8b06 \
                    size    197124

python.versions     39 310 311 312 313

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
}
