summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2024-11-24 15:38:05 +0100
committerGitHub <noreply@github.com>2024-11-24 15:38:05 +0100
commitcde2620f41ecd364e3cbd09ea1abb47041fce239 (patch)
treeb05936a47adf7cf9a4fa602d6cdb991363580577
parenta35aa038b0441cb5b790f1d9c9445e6efb077119 (diff)
downloadspack-cde2620f41ecd364e3cbd09ea1abb47041fce239.tar.gz
spack-cde2620f41ecd364e3cbd09ea1abb47041fce239.tar.bz2
spack-cde2620f41ecd364e3cbd09ea1abb47041fce239.tar.xz
spack-cde2620f41ecd364e3cbd09ea1abb47041fce239.zip
py-safetensors: add v0.4.5 (#47774)
-rw-r--r--var/spack/repos/builtin/packages/py-safetensors/package.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-safetensors/package.py b/var/spack/repos/builtin/packages/py-safetensors/package.py
index f0f11247c5..741a8d8ba4 100644
--- a/var/spack/repos/builtin/packages/py-safetensors/package.py
+++ b/var/spack/repos/builtin/packages/py-safetensors/package.py
@@ -12,9 +12,12 @@ class PySafetensors(PythonPackage):
homepage = "https://github.com/huggingface/safetensors"
pypi = "safetensors/safetensors-0.3.1.tar.gz"
+ version("0.4.5", sha256="d73de19682deabb02524b3d5d1f8b3aaba94c72f1bbfc7911b9b9d5d391c0310")
version("0.4.3", sha256="2f85fc50c4e07a21e95c24e07460fe6f7e2859d0ce88092838352b798ce711c2")
version("0.3.1", sha256="571da56ff8d0bec8ae54923b621cda98d36dcef10feb36fd492c4d0c2cd0e869")
- depends_on("py-setuptools", type="build")
- depends_on("py-setuptools-rust", type="build")
- depends_on("py-maturin", type="build", when="@0.4.3")
+ # Based on PyPI wheel availability
+ depends_on("python@:3.12", when="@:0.4.3", type=("build", "run"))
+ depends_on("py-maturin@1", type="build", when="@0.4.3:")
+ depends_on("py-setuptools", when="@0.3.1", type="build")
+ depends_on("py-setuptools-rust", when="@0.3.1", type="build")