From e77fbfe8f834187c4983a46bf3f7d4d85a875fd2 Mon Sep 17 00:00:00 2001 From: Christopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com> Date: Thu, 1 Aug 2024 02:50:48 +0100 Subject: py-jaxtyping: new package (#45482) --- .../repos/builtin/packages/py-jaxtyping/package.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-jaxtyping/package.py 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")) -- cgit v1.2.3-70-g09d2