# -*- 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-anywidget
version             0.11.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         anywidget is both a specification and toolkit for authoring reusable \
                    web-based widgets for interactive computing environments.
long_description    {*}${description}
homepage            https://github.com/manzt/anywidget

checksums           rmd160  8176b91e902619cf540326ef78342511945cd581 \
                    sha256  6695fbef9449cf8c27f421b96c5837aa37f909ec1f60cfa33add333e1b70b169 \
                    size    426999

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    depends_lib-append  \
                    port:py${python.version}-ipywidgets \
                    port:py${python.version}-typing_extensions \
                    port:py${python.version}-psygnal
}
