summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2023-06-09 13:10:09 -0400
committerGitHub <noreply@github.com>2023-06-09 12:10:09 -0500
commitee106c747ff741a51128280d26d847d1488bbc43 (patch)
tree923fe471f7e61c54c0acfe4e5e71838f5eec2d34
parent295726e6b8b1868f826209cdd594bf01f63479f6 (diff)
downloadspack-ee106c747ff741a51128280d26d847d1488bbc43.tar.gz
spack-ee106c747ff741a51128280d26d847d1488bbc43.tar.bz2
spack-ee106c747ff741a51128280d26d847d1488bbc43.tar.xz
spack-ee106c747ff741a51128280d26d847d1488bbc43.zip
[py-typer] new package (#38270)
* [py-typer] new package * [py-typer] added version 0.7.0
-rw-r--r--var/spack/repos/builtin/packages/py-typer/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-typer/package.py b/var/spack/repos/builtin/packages/py-typer/package.py
new file mode 100644
index 0000000000..b60b652ee7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-typer/package.py
@@ -0,0 +1,21 @@
+# 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 PyTyper(PythonPackage):
+ """Typer, build great CLIs. Easy to code. Based on Python type hints."""
+
+ homepage = "https://github.com/tiangolo/typer"
+ pypi = "typer/typer-0.9.0.tar.gz"
+
+ version("0.9.0", sha256="50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2")
+ version("0.7.0", sha256="ff797846578a9f2a201b53442aedeb543319466870fbe1c701eab66dd7681165")
+
+ depends_on("python@3.6:", type=("build", "run"))
+ depends_on("py-flit-core@2.0:2", type="build")
+ depends_on("py-click@7.1.1:8", type=("build", "run"))
+ depends_on("py-typing-extensions@3.7.4.3:", type=("build", "run"), when="@0.9.0:")