Loading pkgs/development/python-modules/websockets/default.nix +25 −20 Original line number Diff line number Diff line Loading @@ -24,7 +24,8 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; patchPhase = '' patchPhase = '' # Disable all tests that need to terminate within a predetermined amount of # time. This is nondeterministic. sed -i 's/with self.assertCompletesWithin.*:/if True:/' \ Loading @@ -43,6 +44,10 @@ buildPythonPackage rec { ; do sed -i "s/def $t(/def skip_$t(/" tests/legacy/test_protocol.py done '' + lib.optionalString (pythonOlder "3.11") '' # Our Python 3.10 and older raise SSLError instead of SSLCertVerificationError sed -i "s/def test_reject_invalid_server_certificate(/def skip_test_reject_invalid_server_certificate(/" tests/sync/test_client.py ''; nativeCheckInputs = [ unittestCheckHook ]; Loading Loading
pkgs/development/python-modules/websockets/default.nix +25 −20 Original line number Diff line number Diff line Loading @@ -24,7 +24,8 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; patchPhase = '' patchPhase = '' # Disable all tests that need to terminate within a predetermined amount of # time. This is nondeterministic. sed -i 's/with self.assertCompletesWithin.*:/if True:/' \ Loading @@ -43,6 +44,10 @@ buildPythonPackage rec { ; do sed -i "s/def $t(/def skip_$t(/" tests/legacy/test_protocol.py done '' + lib.optionalString (pythonOlder "3.11") '' # Our Python 3.10 and older raise SSLError instead of SSLCertVerificationError sed -i "s/def test_reject_invalid_server_certificate(/def skip_test_reject_invalid_server_certificate(/" tests/sync/test_client.py ''; nativeCheckInputs = [ unittestCheckHook ]; Loading