From 62e729bf88b89f6484630f95371916a673657e14 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Wed, 24 Feb 2021 08:58:34 -0800 Subject: [PATCH] python3Packages.curio: fix flaky test due to slow moving time --- pkgs/development/python-modules/curio/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/curio/default.nix b/pkgs/development/python-modules/curio/default.nix index 31875abd1e83..31bab8d8fa2e 100644 --- a/pkgs/development/python-modules/curio/default.nix +++ b/pkgs/development/python-modules/curio/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , isPy3k , pytestCheckHook , sphinx @@ -16,6 +17,15 @@ buildPythonPackage rec { sha256 = "57edce81c837f3c2cf42fbb346dee26e537d1659e6605269fb13bd179e068744"; }; + patches = [ + # Fix the flaky test due to slow moving time on Apple Silicon chips. + # Remove when https://github.com/dabeaz/curio/pull/339 is in the next release. + (fetchpatch { + url = "https://github.com/dabeaz/curio/commit/132376724bbfaa0a52d3d63d0791aa4ac1eb6f5f.patch"; + sha256 = "sha256-AxO0xRcR9l9/NKEJFwyZIoYcyZxpqOhpdNaeaYokVb4="; + }) + ]; + disabled = !isPy3k; checkInputs = [ pytestCheckHook sphinx ];