summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com>2023-12-17 06:43:02 +0000
committerGitHub <noreply@github.com>2023-12-16 23:43:02 -0700
commitb158a15754ada4933c8f88388b56520dc2a70c33 (patch)
tree7f88fe7c1c8050c39d39500a7dde70cf761af91a /var
parentb82f78003c65ae0ee58696f90f866bbe4e9e7bd2 (diff)
downloadspack-b158a15754ada4933c8f88388b56520dc2a70c33.tar.gz
spack-b158a15754ada4933c8f88388b56520dc2a70c33.tar.bz2
spack-b158a15754ada4933c8f88388b56520dc2a70c33.tar.xz
spack-b158a15754ada4933c8f88388b56520dc2a70c33.zip
py-optax: add new package (#41278)
* py-optax: add new package with version 0.1.7 * Update var/spack/repos/builtin/packages/py-optax/package.py Co-authored-by: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> --------- Co-authored-by: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-optax/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-optax/package.py b/var/spack/repos/builtin/packages/py-optax/package.py
new file mode 100644
index 0000000000..871578fc44
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-optax/package.py
@@ -0,0 +1,25 @@
+# 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 PyOptax(PythonPackage):
+ """A gradient processing and optimisation library in JAX."""
+
+ homepage = "https://github.com/deepmind/optax"
+ pypi = "optax/optax-0.1.7.tar.gz"
+
+ license("Apache-2.0")
+
+ version("0.1.7", sha256="6a5a848bc5e55e619b187c749fdddc4a5443ea14be85cc769f995779865c110d")
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-flit-core@3.2:3", type="build")
+ depends_on("py-absl-py@0.7.1:", type=("build", "run"))
+ depends_on("py-chex@0.1.5:", type=("build", "run"))
+ depends_on("py-jax@0.1.55:", type=("build", "run"))
+ depends_on("py-jaxlib@0.1.37:", type=("build", "run"))
+ depends_on("py-numpy@1.18.0:", type=("build", "run"))