spack/var/spack/repos/builtin/packages/py-nbclassic/package.py
Harmen Stoppels fce95e2efb
license year bump (#34921)
* license bump year
* fix black issues of modified files
* mypy
* fix 2021 -> 2023
2023-01-18 14:30:17 -08:00

49 lines
2.7 KiB
Python

# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyNbclassic(PythonPackage):
"""Jupyter Notebook as a Jupyter Server Extension."""
homepage = "https://github.com/jupyterlab/nbclassic"
pypi = "nbclassic/nbclassic-0.3.1.tar.gz"
version("0.4.8", sha256="c74d8a500f8e058d46b576a41e5bc640711e1032cf7541dde5f73ea49497e283")
version("0.3.5", sha256="99444dd63103af23c788d9b5172992f12caf8c3098dd5a35c787f0df31490c29")
version("0.3.1", sha256="f920f8d09849bea7950e1017ff3bd101763a8d68f565a51ce053572e65aa7947")
depends_on("python@3.7:", when="@0.3.6:", type=("build", "run"))
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")
# TODO: replace this after concretizer learns how to concretize separate build deps
depends_on("py-jupyter-packaging11", when="@0.3.3:", type="build")
# depends_on('py-jupyter-packaging@0.9:1', when='@0.3.3:', type='build')
depends_on("py-babel", when="@0.4:", type="build")
depends_on("py-jinja2", when="@0.4:", type=("build", "run"))
depends_on("py-tornado@6.1:", when="@0.4:", type=("build", "run"))
depends_on("py-pyzmq@17:", when="@0.4:", type=("build", "run"))
depends_on("py-argon2-cffi", when="@0.4:", type=("build", "run"))
depends_on("py-traitlets@4.2.1:", when="@0.4:", type=("build", "run"))
depends_on("py-jupyter-core@4.6.1:", when="@0.4:", type=("build", "run"))
depends_on("py-jupyter-client@6.1.1:", when="@0.4:", type=("build", "run"))
depends_on("py-ipython-genutils", when="@0.4:", type=("build", "run"))
# version requirement for py-jupyter-server comes from setup.cfg
depends_on("py-jupyter-server@1.17:", when="@0.4:", type=("build", "run"))
depends_on("py-jupyter-server@1.8:", when="@0.3.7", type=("build", "run"))
depends_on("py-jupyter-server@1.8:1", when="@:0.3.6", type=("build", "run"))
depends_on("py-nbformat", when="@0.4:", type=("build", "run"))
depends_on("py-notebook-shim@0.1:", when="@0.3.6:", type=("build", "run"))
depends_on("py-nbconvert@5:", when="@0.4:", type=("build", "run"))
depends_on("py-nest-asyncio@1.5:", when="@0.4:", type=("build", "run"))
depends_on("py-ipykernel", when="@0.4:", type=("build", "run"))
depends_on("py-send2trash@1.8:", when="@0.4:", type=("build", "run"))
depends_on("py-terminado@0.8.3:", when="@0.4:", type=("build", "run"))
depends_on("py-prometheus-client", when="@0.4:", type=("build", "run"))
depends_on("py-notebook@:6", when="@:0.3.7", type=("build", "run"))