summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-ipykernel/package.py
blob: 2357fbb56d5ffb93471862a7127f2aae48054f3b (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright 2013-2024 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 PyIpykernel(PythonPackage):
    """IPython Kernel for Jupyter"""

    homepage = "https://github.com/ipython/ipykernel"
    pypi = "ipykernel/ipykernel-5.3.4.tar.gz"

    license("BSD-3-Clause")

    version("6.23.1", sha256="1aba0ae8453e15e9bc6b24e497ef6840114afcdb832ae597f32137fa19d42a6f")
    version("6.22.0", sha256="302558b81f1bc22dc259fb2a0c5c7cf2f4c0bdb21b50484348f7bafe7fb71421")
    version("6.16.0", sha256="7fe42c0d58435e971dc15fd42189f20d66bf35f3056bda4f6554271bc1fa3d0d")
    version("6.15.2", sha256="e7481083b438609c9c8a22d6362e8e1bc6ec94ba0741b666941e634f2d61bdf3")
    version("6.9.1", sha256="f95070a2dfd3147f8ab19f18ee46733310813758593745e07ec18fb08b409f1d")
    version("6.4.1", sha256="df3355e5eec23126bc89767a676c5f0abfc7f4c3497d118c592b83b316e8c0cd")
    version("6.2.0", sha256="4439459f171d77f35b7f7e72dace5d7c2dd10a5c9e2c22b173ad9048fbfe7656")
    version("6.0.2", sha256="7fb3e370dbb481b012b74bed4e794d2d16eb2a83930b31e6d8d030b9fdb4d5b4")
    version("5.5.6", sha256="4ea44b90ae1f7c38987ad58ea0809562a17c2695a0499644326f334aecd369ec")
    version("5.5.5", sha256="e976751336b51082a89fc2099fb7f96ef20f535837c398df6eab1283c2070884")
    version("5.3.4", sha256="9b2652af1607986a1b231c62302d070bc0534f564c393a5d9d130db9abbbe89d")
    version("5.1.1", sha256="f0e962052718068ad3b1d8bcc703794660858f58803c3798628817f492a8769c")
    version("5.1.0", sha256="0fc0bf97920d454102168ec2008620066878848fcfca06c22b669696212e292f")
    version("4.10.0", sha256="699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad")
    version("4.5.0", sha256="245a798edb8fd751b95750d8645d736dd739a020e7fc7d5627dac4d1c35d8295")
    version("4.4.1", sha256="6d48398b3112efb733b254edede4b7f3262c28bd19f665b64ef1acf6ec5cd74f")
    version("4.4.0", sha256="d516427c3bd689205e6693c9616302ef34017b91ada3c9ea3fca6e90702b7ffe")
    version("4.3.1", sha256="8219d3eaa3e4d4efc5f349114e41a40f0986c91a960846bb81d5da817fb7cc3f")
    version("4.3.0", sha256="f214c661328c836e02b6f185f98f3eccd7ce396791937493ffa1babf5e3267ab")
    version("4.2.2", sha256="a876da43e01acec2c305abdd8e6aa55f052bab1196171ccf1cb9a6aa230298b0")
    version("4.2.1", sha256="081a5d4db33db58697be2d682b92f79b2c239493445f13dd457c15bc3e52c874")
    version("4.2.0", sha256="723b3d4baac20f0c9cd91fc75c3e813636ecb6c6e303fb34d628c3df078985a7")
    version("4.1.1", sha256="d8c5555386d0f18f1336dea9800f9f0fe96dcecc9757c0f980e11fdfadb661ff")
    version("4.1.0", sha256="e0e150ad55e487e49054efc9a4b0e2e17f27e1de77444b26760789077b146d86")

    depends_on("python@3.8:", when="@6.22:", type=("build", "run"))
    depends_on("py-hatchling@1.4:", when="@6.13.1:", type="build")

    depends_on("py-debugpy@1.6.5:", when="@6.22:", type=("build", "run"))
    depends_on("py-debugpy@1:", when="@6.11:", type=("build", "run"))
    depends_on("py-debugpy@1.0:1", when="@6:6.10", type=("build", "run"))
    depends_on("py-ipython@7.23.1:", when="@6.5.1:", type=("build", "run"))
    depends_on("py-ipython@7.23.1:7", when="@6.0.0:6.5.0", type=("build", "run"))
    depends_on("py-ipython@5.0:", when="@5", type=("build", "run"))
    depends_on("py-ipython@4.0:", when="@:4", type=("build", "run"))
    depends_on("py-comm@0.1.1:", when="@6.22:", type=("build", "run"))
    depends_on("py-traitlets@5.4:", when="@6.22:", type=("build", "run"))
    depends_on("py-traitlets@5.1:", when="@6.11:", type=("build", "run"))
    depends_on("py-traitlets@5.1.0:5", when="@6.5:6.10", type=("build", "run"))
    depends_on("py-traitlets@4.1.0:5", when="@6.0:6.4", type=("build", "run"))
    depends_on("py-traitlets@4.1.0:", type=("build", "run"))
    depends_on("py-jupyter-client@6.1.12:", when="@6.11:", type=("build", "run"))
    depends_on("py-jupyter-client@:7", when="@6.2:6.10", type=("build", "run"))
    depends_on("py-jupyter-client@:6", when="@6.0.2:6.1", type=("build", "run"))
    depends_on("py-jupyter-client", type=("build", "run"))
    depends_on("py-jupyter-core@4.12:", when="@6.22:", type=("build", "run"))
    depends_on("py-nest-asyncio", when="@6.6.1:", type=("build", "run"))
    depends_on("py-tornado@6.1:", when="@6.11:", type=("build", "run"))
    depends_on("py-tornado@5:6", when="@6.10", type=("build", "run"))
    depends_on("py-tornado@4.2:6", when="@6:6.9", type=("build", "run"))
    depends_on("py-tornado@4.2:", when="@5", type=("build", "run"))
    depends_on("py-tornado@4:", when="@:4", type=("build", "run"))
    depends_on("py-matplotlib-inline@0.1:", when="@6.11:", type=("build", "run"))
    depends_on("py-matplotlib-inline@0.1.0:0.1", when="@6:6.10", type=("build", "run"))
    depends_on("py-appnope", when="@5.1.3: platform=darwin", type=("build", "run"))
    depends_on("py-pyzmq@20:", when="@6.22:", type=("build", "run"))
    depends_on("py-pyzmq@17:", when="@6.15:", type=("build", "run"))
    depends_on("py-psutil", when="@6.9.2:", type=("build", "run"))
    depends_on("py-packaging", when="@6.12:", type=("build", "run"))

    conflicts("^py-jupyter-core@5.0")

    # Historical dependencies
    depends_on("py-setuptools", when="@5:6.13.0", type="build")
    depends_on("py-jupyter-core@4.2:", when="@5:6.13.0", type="build")
    depends_on("py-ipython-genutils", when="@6.3.1:6.4", type=("build", "run"))
    depends_on("py-ipython-genutils", when="@5.5.6", type=("build", "run"))
    depends_on("py-importlib-metadata@:4", when="@6.1:6.6 ^python@:3.7", type=("build", "run"))
    depends_on("py-importlib-metadata@:3", when="@6.0.0:6.0 ^python@:3.7", type=("build", "run"))
    depends_on("py-argcomplete@1.12.3:", when="@6.1:6.6 ^python@:3.7", type=("build", "run"))

    @run_after("install")
    def install_data(self):
        """install the Jupyter kernel spec"""
        self.spec["python"].command("-m", "ipykernel", "install", "--prefix=" + self.prefix)