From 169fbd97b4bf6de6d80bfe198fa2e98485859468 Mon Sep 17 00:00:00 2001 From: aleksana Date: Wed, 24 Dec 2025 21:57:37 +0800 Subject: [PATCH 1/3] python3Packages.uvloop: skip flakey test_cancel_post_init --- pkgs/development/python-modules/uvloop/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index 31bbc7a7f2d7..de4c2a33beef 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -70,6 +70,9 @@ buildPythonPackage rec { "tests/test_tcp.py::Test_AIO_TCP::test_create_connection_open_con_addr" # ConnectionAbortedError: SSL handshake is taking longer than 15.0 seconds "tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_ssl_1" + # Fails randomly on hydra + # https://github.com/MagicStack/uvloop/issues/709 + "tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init" ] ++ lib.optionals (pythonOlder "3.11") [ "tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_failed_certificat" From 30e0abd67752ed16540562354705400f7b31cc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 1 Jan 2026 09:45:03 +0100 Subject: [PATCH 2/3] Revert "python314Packages.uvloop: skip failing test on x86_64-darwin" This reverts commit ef4313c45c7c8d802b27918068b1583e5f863210. It's superfluous now. --- pkgs/development/python-modules/uvloop/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index de4c2a33beef..62c447543d61 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -83,10 +83,13 @@ buildPythonPackage rec { # Broken: https://github.com/NixOS/nixpkgs/issues/160904 "tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && pythonAtLeast "3.14") [ - # https://github.com/MagicStack/uvloop/issues/709 - "tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init" - ]; + ++ + lib.optionals + (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && pythonAtLeast "3.14") + [ + # https://github.com/MagicStack/uvloop/issues/709 + "tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init" + ]; preCheck = '' # force using installed/compiled uvloop From 6b6e76210cb087f20c2adcc34029d12205395f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 1 Jan 2026 09:45:11 +0100 Subject: [PATCH 3/3] Revert "python314Packages.uvloop: skip failing test on aarch64-darwin" This reverts commit 8a5a3e116f333eace2d3f5aa95b7ece338f58783. It's superfluous now. --- pkgs/development/python-modules/uvloop/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index 62c447543d61..6354d3b3d49e 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -2,9 +2,9 @@ lib, stdenv, buildPythonPackage, - pythonAtLeast, pythonOlder, fetchFromGitHub, + fetchpatch, # build-system cython, @@ -82,14 +82,7 @@ buildPythonPackage rec { "tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename" # Broken: https://github.com/NixOS/nixpkgs/issues/160904 "tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" - ] - ++ - lib.optionals - (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && pythonAtLeast "3.14") - [ - # https://github.com/MagicStack/uvloop/issues/709 - "tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init" - ]; + ]; preCheck = '' # force using installed/compiled uvloop