summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-prompt-toolkit/package.py
blob: be303990926c205f73f828b24a8c3c1d3aa5355b (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
# 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 PyPromptToolkit(PythonPackage):
    """Library for building powerful interactive command lines in Python"""

    homepage = "https://github.com/prompt-toolkit/python-prompt-toolkit"
    pypi = "prompt_toolkit/prompt_toolkit-1.0.9.tar.gz"

    # 'prompt_toolkit.contrib.ssh' requires 'asyncssh', but 'asyncssh' isn't listed as a
    # dependency. Leave out of 'import_modules' to avoid unnecessary dependency.
    skip_modules = ["prompt_toolkit.contrib.ssh"]

    license("BSD-3-Clause")

    version("3.0.38", sha256="23ac5d50538a9a38c8bde05fecb47d0b403ecd0662857a86f886f798563d5b9b")
    version("3.0.31", sha256="9ada952c9d1787f52ff6d5f3484d0b4df8952787c087edf6a1f7c2cb1ea88148")
    version("3.0.29", sha256="bd640f60e8cecd74f0dc249713d433ace2ddc62b65ee07f96d358e0b152b6ea7")
    version("3.0.24", sha256="1bb05628c7d87b645974a1bad3f17612be0c29fa39af9f7688030163f680bad6")
    version("3.0.17", sha256="9397a7162cf45449147ad6042fa37983a081b8a73363a5253dd4072666333137")
    version("3.0.16", sha256="0fa02fa80363844a4ab4b8d6891f62dd0645ba672723130423ca4037b80c1974")
    version("3.0.7", sha256="822f4605f28f7d2ba6b0b09a31e25e140871e96364d1d377667b547bb3bf4489")
    version("2.0.10", sha256="f15af68f66e664eaa559d4ac8a928111eebd5feda0c11738b5998045224829db")
    version("2.0.9", sha256="2519ad1d8038fd5fc8e770362237ad0364d16a7650fb5724af6997ed5515e3c1")
    version("1.0.16", sha256="c1cedd626e08b8ee830ee65897de754113ff3f3035880030c08b01674d85c5b4")
    version("1.0.9", sha256="cd6523b36adc174cc10d54b1193eb626b4268609ff6ea92c15bcf1996609599c")

    depends_on("python@3.7:", when="@3.0.37:", type=("build", "run"))
    depends_on("python@3.6.2:", when="@3.0.24:", type=("build", "run"))
    depends_on("python@3.6.1:", when="@3:3.0.17", type=("build", "run"))
    # collections.Mapping was removed in python@3.10
    depends_on("python@:3.9", when="@1.0.9", type=("build", "run"))
    depends_on("py-setuptools", type="build")

    depends_on("py-wcwidth", type=("build", "run"))

    # Historical dependencies
    depends_on("py-six@1.9.0:", when="@:2", type=("build", "run"))