From cde2620f41ecd364e3cbd09ea1abb47041fce239 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 24 Nov 2024 15:38:05 +0100 Subject: py-safetensors: add v0.4.5 (#47774) --- var/spack/repos/builtin/packages/py-safetensors/package.py | 9 ++++++--- 1 file 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") -- cgit v1.2.3-70-g09d2