From e6225c04a97bd88356e38e2c85aa994fa0db6cb5 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Fri, 2 May 2025 12:12:13 +0800 Subject: [PATCH] python3Packages.transitions: disable broken test on darwin --- .../python-modules/transitions/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/transitions/default.nix b/pkgs/development/python-modules/transitions/default.nix index 545e5667da8c..a7b5535c9dcc 100644 --- a/pkgs/development/python-modules/transitions/default.nix +++ b/pkgs/development/python-modules/transitions/default.nix @@ -42,6 +42,11 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # sleep is not accurate on Darwin + "tests/test_async.py" + ]; + disabledTests = [ "test_diagram" @@ -50,6 +55,16 @@ buildPythonPackage rec { ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Upstream issue https://github.com/pygraphviz/pygraphviz/issues/441 "test_binary_stream" + + # sleep is not accurate on Darwin + "test_timeout" + "test_timeout_callbacks" + "test_timeout_transitioning" + "test_thread_access" + "test_parallel_access" + "test_parallel_deep" + "test_conditional_access" + "test_pickle" ]; pythonImportsCheck = [ "transitions" ];