summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com>2023-12-17 18:18:02 +0000
committerGitHub <noreply@github.com>2023-12-17 12:18:02 -0600
commited52b505d4132f411f15d9764d4bd014c76af8dd (patch)
treeb29594f8a2b90c62e750c7ae0eb68398be9c9c09 /var
parentb111064e221aae83e62226672cd8bf9a7524423d (diff)
downloadspack-ed52b505d4132f411f15d9764d4bd014c76af8dd.tar.gz
spack-ed52b505d4132f411f15d9764d4bd014c76af8dd.tar.bz2
spack-ed52b505d4132f411f15d9764d4bd014c76af8dd.tar.xz
spack-ed52b505d4132f411f15d9764d4bd014c76af8dd.zip
py-plum-dispatch: add new package (#41536)
* py-plum-dispatch: add new package * Update var/spack/repos/builtin/packages/py-plum-dispatch/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-plum-dispatch/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-plum-dispatch/package.py b/var/spack/repos/builtin/packages/py-plum-dispatch/package.py
new file mode 100644
index 0000000000..757527c6ea
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-plum-dispatch/package.py
@@ -0,0 +1,23 @@
+# 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 PyPlumDispatch(PythonPackage):
+ """Multiple dispatch in Python."""
+
+ homepage = "https://github.com/beartype/plum"
+ pypi = "plum_dispatch/plum_dispatch-2.2.2.tar.gz"
+
+ license("MIT")
+
+ version("2.2.2", sha256="d5d180225c9fbf0277375bb558b649d97d0b651a91037bb7155cedbe9f52764b")
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-hatchling@1.8.0:", type="build")
+ depends_on("py-hatch-vcs", type="build")
+ depends_on("py-beartype@0.16.2:", type=("build", "run"))
+ depends_on("py-typing-extensions", when="^python@:3.10", type=("build", "run"))