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 <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka
2025-04-01 21:23:54 -04:00
parent 65b802a6fd
commit 7ed831a2cd
@@ -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"