From 7ed831a2cd7d9e76f2791edd0dba42857aaf3bcb Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 27 Mar 2025 22:02:21 -0400 Subject: [PATCH] python312Packages.peft: disable gpu tests on darwin These depend on hardware present; and will fail if any MPS devices exist. Signed-off-by: Ihar Hrachyshka --- pkgs/development/python-modules/peft/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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"