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

python.versions     310 311 312

maintainers         {stromnov @stromnov} openmaintainer

description         NBClassic runs the Jupyter Notebook frontend on the Jupyter Server backend.
long_description    {*}${description}

homepage            https://jupyter.org/

checksums           rmd160  804311fd13d6c41dafdd5481b6acc0f3e58c0010 \
                    sha256  0ae11eb2319455d805596bf320336cda9554b41d99ab9a3c31bf8180bffa30e3 \
                    size    20201455

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-jupyter_packaging \
                        port:py${python.version}-jupyter_server \
                        port:py${python.version}-babel

    depends_lib-append  port:py${python.version}-jinja2 \
                        port:py${python.version}-tornado \
                        port:py${python.version}-zmq \
                        port:py${python.version}-argon2-cffi \
                        port:py${python.version}-traitlets \
                        port:py${python.version}-jupyter_core \
                        port:py${python.version}-jupyter_client \
                        port:py${python.version}-ipython_genutils \
                        port:py${python.version}-jupyter_server \
                        port:py${python.version}-nbformat \
                        port:py${python.version}-notebook_shim \
                        port:py${python.version}-nest_asyncio \
                        port:py${python.version}-ipykernel \
                        port:py${python.version}-send2trash \
                        port:py${python.version}-terminado \
                        port:py${python.version}-prometheus_client

    patchfiles-append   patch-pyproject.toml.diff
}
