# -*- 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-jupyterlab
version             4.1.5
revision            0
categories-append   devel
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     39 310 311 312 313
python.pep517_backend   hatch

maintainers         {stromnov @stromnov} openmaintainer

description         Next-generation web-based notebook environment for \
                    interactive computing.
long_description    JupyterLab enables you to work with documents and \
                    activities such as Jupyter notebooks, text editors, \
                    terminals, and custom components in a flexible, \
                    integrated, and extensible manner.

homepage            https://jupyter.org/

checksums           rmd160  8f04817dfd5e3c278c19de2203b372b9e73aef59 \
                    sha256  c9ad75290cb10bfaff3624bf3fbb852319b4cce4c456613f8ebbaa98d03524db \
                    size    21797132

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

    depends_lib-append  port:py${python.version}-async-lru \
                        port:py${python.version}-httpx \
                        port:py${python.version}-ipykernel \
                        port:py${python.version}-jinja2 \
                        port:py${python.version}-jupyter_core \
                        port:py${python.version}-jupyter_server \
                        port:py${python.version}-jupyter-lsp \
                        port:py${python.version}-jupyterlab_server \
                        port:py${python.version}-notebook_shim \
                        port:py${python.version}-packaging \
                        port:py${python.version}-tornado \
                        port:py${python.version}-traitlets

    if {${python.version} < 310} {
        depends_lib-append  port:py${python.version}-importlib-metadata
    }

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-tomli
    }
}
