summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-nbclassic/package.py
blob: 96cc0c67104f47e590a6cdd631278bc6303d23d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2022 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 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.3.5', sha256='99444dd63103af23c788d9b5172992f12caf8c3098dd5a35c787f0df31490c29')
    version('0.3.1', sha256='f920f8d09849bea7950e1017ff3bd101763a8d68f565a51ce053572e65aa7947')

    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-jupyter-server@1.8:1', type=('build', 'run'))
    depends_on('py-notebook@:6', type=('build', 'run'))