aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/websockets/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/websockets/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/websockets/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/websockets/default.nix b/nixpkgs/pkgs/development/python-modules/websockets/default.nix
index 1e1e1ef58a8..eeb12bd5b75 100644
--- a/nixpkgs/pkgs/development/python-modules/websockets/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/websockets/default.nix
@@ -22,6 +22,13 @@ buildPythonPackage rec {
# Tests fail on Darwin with `OSError: AF_UNIX path too long`
doCheck = !stdenv.isDarwin;
+ # Disable all tests that need to terminate within a predetermined amount of
+ # time. This is nondeterministic.
+ patchPhase = ''
+ sed -i 's/with self.assertCompletesWithin.*:/if True:/' \
+ tests/test_protocol.py
+ '';
+
meta = with lib; {
description = "WebSocket implementation in Python 3";
homepage = "https://github.com/aaugustin/websockets";