diff --git a/pkgs/development/python-modules/celery/default.nix b/pkgs/development/python-modules/celery/default.nix index c6f6f4e7ff0e..288facb50e23 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 = [