summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-ipython/package.py
blob: 76aabfcdb188825ba6ef042054e3788252733d93 (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
# Copyright 2013-2021 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)


class PyIpython(PythonPackage):
    """IPython provides a rich toolkit to help you make the most out of using
    Python interactively."""

    homepage = "https://ipython.readthedocs.org/"
    pypi = "ipython/ipython-7.18.1.tar.gz"

    # 'IPython.kernel' is deprecated and fails to import, leave out of 'import_modules'
    # to ensure that import tests pass.
    import_modules = [
        'IPython', 'IPython.core', 'IPython.core.tests', 'IPython.core.magics',
        'IPython.sphinxext', 'IPython.terminal',
        'IPython.terminal.pt_inputhooks', 'IPython.terminal.tests',
        'IPython.utils', 'IPython.utils.tests', 'IPython.extensions',
        'IPython.extensions.tests', 'IPython.testing', 'IPython.testing.tests',
        'IPython.testing.plugin', 'IPython.lib', 'IPython.lib.tests',
        'IPython.external', 'IPython.external.decorators'
    ]

    version('7.28.0', sha256='2097be5c814d1b974aea57673176a924c4c8c9583890e7a5f082f547b9975b11')
    version('7.27.0', sha256='58b55ebfdfa260dad10d509702dc2857cb25ad82609506b070cf2d7b7df5af13')
    version('7.26.0', sha256='0cff04bb042800129348701f7bd68a430a844e8fb193979c08f6c99f28bb735e')
    version('7.21.0', sha256='04323f72d5b85b606330b6d7e2dc8d2683ad46c3905e955aa96ecc7a99388e70')
    version('7.18.1', sha256='a331e78086001931de9424940699691ad49dfb457cea31f5471eae7b78222d5e')
    version('7.5.0',  sha256='e840810029224b56cd0d9e7719dc3b39cf84d577f8ac686547c8ba7a06eeab26')
    version('7.3.0',  sha256='06de667a9e406924f97781bda22d5d76bfb39762b678762d86a466e63f65dc39')
    version('5.8.0',  sha256='4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906')
    version('5.1.0',  sha256='7ef4694e1345913182126b219aaa4a0047e191af414256da6772cf249571b961')
    version('3.1.0',  sha256='532092d3f06f82b1d8d1e5c37097eae19fcf025f8f6a4b670dd49c3c338d5624')
    version('2.3.1',  sha256='3e98466aa2fe54540bcba9aa6e01a39f40110d67668c297340c4b9514b7cc49c')

    depends_on('python@3.7:', type=('build', 'run'), when='@7.17:')
    depends_on('python@3.6:', type=('build', 'run'), when='@7.10:')
    depends_on('python@3.5:', type=('build', 'run'), when='@7:')
    depends_on('python@3.3:', type=('build', 'run'), when='@6:')
    depends_on('python@2.7:2.8,3.3:', type=('build', 'run'))
    depends_on('py-setuptools@18.5:', type='run', when='@4.1:')
    depends_on('py-jedi@0.10:', type=('build', 'run'), when='@7.5:7.17,7.19')
    depends_on('py-jedi@0.16:', type=('build', 'run'), when='@7.18,7.20:')
    depends_on('py-decorator', type=('build', 'run'))
    depends_on('py-pickleshare', type=('build', 'run'))
    depends_on('py-traitlets@4.2:', type=('build', 'run'))
    depends_on('py-prompt-toolkit@1.0.4:1',  when='@:7.0.0', type=('build', 'run'))
    depends_on('py-prompt-toolkit@2.0.0:2',  when='@7.0.0:7.5.0', type=('build', 'run'))
    depends_on('py-prompt-toolkit@2.0.0:2.0', when='@7.5.0', type=('build', 'run'))
    depends_on('py-prompt-toolkit@3.0.2:3.0', when='@7.18:7.25', type=('build', 'run'))
    depends_on('py-prompt-toolkit@2.0.0:2,3.0.2:3.0', when='@7.26:', type=('build', 'run'))
    depends_on('py-pygments', type=('build', 'run'))
    depends_on('py-backcall', type=('build', 'run'), when='@7.3.0:')
    depends_on('py-matplotlib-inline', when='@7.23:', type=('build', 'run'))
    depends_on('py-pexpect', type=('build', 'run'))
    depends_on('py-pexpect@4.4:', type=('build', 'run'), when='@7.18: platform=linux')
    depends_on('py-pexpect@4.4:', type=('build', 'run'), when='@7.18: platform=darwin')
    depends_on('py-pexpect@4.4:', type=('build', 'run'), when='@7.18: platform=cray')
    depends_on('py-appnope', type=('build', 'run'), when='platform=darwin')
    depends_on('py-colorama', when='platform=windows', type=('build', 'run'))
    depends_on('py-backports-shutil-get-terminal-size', type=('build', 'run'), when="^python@:3.2")
    depends_on('py-pathlib2', type=('build', 'run'), when="^python@:3.3")
    depends_on('py-simplegeneric@0.8:', type=('build', 'run'), when='@:7.0.0')