From 3b3f29515a2806b082300a9e9459e19021406062 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 18 Apr 2026 10:59:26 -0700 Subject: [PATCH] python3Packages.celery: remove pytest-xdist as incomplete tests then hang pytestRemoveBytecode --- pkgs/development/python-modules/celery/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/celery/default.nix b/pkgs/development/python-modules/celery/default.nix index 2d76c8c237c3..5c41e1a4e529 100644 --- a/pkgs/development/python-modules/celery/default.nix +++ b/pkgs/development/python-modules/celery/default.nix @@ -154,9 +154,13 @@ buildPythonPackage (finalAttrs: { pytest-celery pytest-click pytest-timeout - pytest-xdist pytestCheckHook ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + # Using `pytest-xdist` leads to incomplete tests which hang `pytestRemoveBytecode` + # under `sandbox=false` (the default on Darwin). + pytest-xdist + ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; disabledTestPaths = [