# -*- 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.4
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}
supported_archs     noarch
platforms           {darwin any}
homepage            https://github.com/holoviz/pyviz_comms

checksums           rmd160  3f05895086406783009e22c60044e6b4d8116a2c \
                    sha256  d70e17555f7262c4884a6b7bc9ca19cb816507a032a334d9cb411b4546caff4c \
                    size    196973

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    python.pep517_backend \
                    hatch

    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
}