From b2dee495045831cce87780aa6b717e0378cd65b2 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 3 Feb 2024 16:07:16 +0900 Subject: [PATCH] python311Packages.safetensors: fix build on darwin --- pkgs/development/python-modules/safetensors/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/safetensors/default.nix b/pkgs/development/python-modules/safetensors/default.nix index 0aa729c20e54..4005a620d8a6 100644 --- a/pkgs/development/python-modules/safetensors/default.nix +++ b/pkgs/development/python-modules/safetensors/default.nix @@ -55,6 +55,9 @@ buildPythonPackage rec { "tests/test_flax_comparison.py" "tests/test_paddle_comparison.py" "tests/test_tf_comparison.py" + ] ++ lib.optionals stdenv.isDarwin [ + # don't require mlx (not in Nixpkgs) to run tests + "tests/test_mlx_comparison.py" ]; pythonImportsCheck = [