lol

Merge pull request #176153 from kalekseev/fix/python3Packages.uvloop

authored by

Sandro and committed by
GitHub
629b931d d910a8b8

+12 -6
+12 -6
pkgs/development/python-modules/uvloop/default.nix
··· 6 6 , libuv 7 7 , CoreServices 8 8 , ApplicationServices 9 - # Check Inputs 9 + # Check Inputs 10 10 , aiohttp 11 11 , psutil 12 12 , pyopenssl ··· 34 34 checkInputs = [ 35 35 aiohttp 36 36 pytestCheckHook 37 - pyopenssl 38 37 psutil 39 38 ]; 40 39 ··· 46 45 "--assert=plain" 47 46 "--strict" 48 47 "--tb=native" 48 + # Depend on pyopenssl 49 + "--deselect tests/test_tcp.py::Test_UV_TCPSSL::test_flush_before_shutdown" 50 + "--deselect tests/test_tcp.py::Test_UV_TCPSSL::test_renegotiation" 49 51 ] ++ lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) [ 50 52 # test gets stuck in epoll_pwait on hydras aarch64 builders 51 53 # https://github.com/MagicStack/uvloop/issues/412 52 - "--deselect" "tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data" 54 + "--deselect tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data" 53 55 ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ 54 56 # Flaky test: https://github.com/MagicStack/uvloop/issues/412 55 - "--deselect" "tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout_handler_not_set" 57 + "--deselect tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout_handler_not_set" 56 58 # Broken: https://github.com/NixOS/nixpkgs/issues/160904 57 - "--deselect" "tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" 59 + "--deselect tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" 58 60 ]; 59 61 60 62 disabledTestPaths = [ ··· 66 68 # Work around "OSError: AF_UNIX path too long" 67 69 # https://github.com/MagicStack/uvloop/issues/463 68 70 export TMPDIR="/tmp" 69 - '' + '' 71 + # pyopenssl is not well supported by upstream 72 + # https://github.com/NixOS/nixpkgs/issues/175875 73 + substituteInPlace tests/test_tcp.py \ 74 + --replace "from OpenSSL import SSL as openssl_ssl" "" 75 + '' + '' 70 76 # force using installed/compiled uvloop vs source by moving tests to temp dir 71 77 export TEST_DIR=$(mktemp -d) 72 78 cp -r tests $TEST_DIR