diff --git a/pkgs/development/python-modules/peft/default.nix b/pkgs/development/python-modules/peft/default.nix index ad2727b4de94..c0acbfd1ac70 100644 --- a/pkgs/development/python-modules/peft/default.nix +++ b/pkgs/development/python-modules/peft/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + stdenv, # build-system setuptools, @@ -69,6 +70,11 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests" ]; + # These tests fail when MPS devices are detected + disabledTests = lib.optional stdenv.isDarwin [ + "gpu" + ]; + disabledTestPaths = [ # ValueError: Can't find 'adapter_config.json' "tests/test_config.py"