From 875c0ff519352980cf535ec093544f519956bd9a Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 1 Aug 2026 00:47:47 -0400 Subject: [PATCH] python3Packages.mlx: skip flaky test on darwin (cherry picked from commit 6f699c28af531efe2b29a3f7efc31cee6a0205a7) --- pkgs/development/python-modules/mlx/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/mlx/default.nix b/pkgs/development/python-modules/mlx/default.nix index b70ed7de68e8..9d5898ddb82f 100644 --- a/pkgs/development/python-modules/mlx/default.nix +++ b/pkgs/development/python-modules/mlx/default.nix @@ -141,6 +141,12 @@ buildPythonPackage (finalAttrs: { "test_orthogonal" "test_vmap_inverse" "test_vmap_svd" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # M1 Accelerate bug, to be fixed in macOS: + # https://github.com/ml-explore/mlx/issues/3200 + # https://github.com/ml-explore/mlx/pull/3563#issuecomment-4784288696 + "test_gather_qmm_sorted" ]; disabledTestPaths = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [