From f7974155c9d01c39e54f2f87d877054035df886b Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 5 Jul 2025 10:17:41 -0700 Subject: [PATCH] python3Packages.accelerate: disable test that fails in nixpkgs-review Testing test_config_compatibility in two pythons simultaneously causes a port conflict on Darwin. --- pkgs/development/python-modules/accelerate/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index 7c2b4d7bd1ab..f28a304c54dd 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -149,6 +149,10 @@ buildPythonPackage rec { ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ # RuntimeError: torch_shm_manager: execl failed: Permission denied "CheckpointTest" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Fails in nixpkgs-review due to a port conflict with simultaneous python builds + "test_config_compatibility" ]; disabledTestPaths = lib.optionals (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64)) [