summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com>2024-08-01 02:50:48 +0100
committerGitHub <noreply@github.com>2024-08-01 03:50:48 +0200
commite77fbfe8f834187c4983a46bf3f7d4d85a875fd2 (patch)
tree4bbbd6fbc6ad401f430b6ed8180a227db4fdd5af
parentd485650369f3befe1d7e1885f13bf81d6a5d6353 (diff)
downloadspack-e77fbfe8f834187c4983a46bf3f7d4d85a875fd2.tar.gz
spack-e77fbfe8f834187c4983a46bf3f7d4d85a875fd2.tar.bz2
spack-e77fbfe8f834187c4983a46bf3f7d4d85a875fd2.tar.xz
spack-e77fbfe8f834187c4983a46bf3f7d4d85a875fd2.zip
py-jaxtyping: new package (#45482)
-rw-r--r--var/spack/repos/builtin/packages/py-jaxtyping/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-jaxtyping/package.py b/var/spack/repos/builtin/packages/py-jaxtyping/package.py
new file mode 100644
index 0000000000..fb703a3eaa
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-jaxtyping/package.py
@@ -0,0 +1,21 @@
+# 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 PyJaxtyping(PythonPackage):
+ """Type annotations and runtime checking for shape and dtype of JAX arrays, and PyTrees."""
+
+ homepage = "https://docs.kidger.site/jaxtyping/"
+ pypi = "jaxtyping/jaxtyping-0.2.33.tar.gz"
+
+ license("Apache-2.0")
+
+ version("0.2.33", sha256="9a9cfccae4fe05114b9fb27a5ea5440be4971a5a075bbd0526f6dd7d2730f83e")
+
+ depends_on("python@3.9:", type=("build", "run"))
+ depends_on("py-hatchling", type="build")
+ depends_on("py-typeguard@2.13.3", type=("build", "run"))