Skip to content

Commit

Permalink
python312Packages.safetensors: 0.4.5 -> 0.5.0 (NixOS#370295)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Jan 2, 2025
2 parents 2c9288a + c4f5b7c commit 06cb2dd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pkgs/development/python-modules/safetensors/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
rustc,
setuptools-rust,

# buildInputs
libiconv,

# tests
h5py,
numpy,
Expand All @@ -22,20 +19,20 @@

buildPythonPackage rec {
pname = "safetensors";
version = "0.4.5";
version = "0.5.0";
pyproject = true;

src = fetchFromGitHub {
owner = "huggingface";
repo = "safetensors";
rev = "refs/tags/v${version}";
hash = "sha256-gr4hBbecaGHaoNhRQQXWfLfNB0/wQPKftSiTnGgngog=";
tag = "v${version}";
hash = "sha256-rs9mYl/2KNdV9e+L/kZr59kLw7ckW9UQPZwkaGyl1Iw=";
};

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "${src.name}/bindings/python";
hash = "sha256-zDXzEVvmJF1dEVUFGBc3losr9U1q/qJCjNFkdJ/pCd4=";
hash = "sha256-bQkLBiuhVm2dzrf6hq+S04+zoXUszA7be8iS0WJSoOU=";
};

sourceRoot = "${src.name}/bindings/python";
Expand All @@ -48,8 +45,6 @@ buildPythonPackage rec {
setuptools-rust
];

buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];

nativeCheckInputs = [
h5py
numpy
Expand Down

0 comments on commit 06cb2dd

Please sign in to comment.