From 45874d3d33465659c7510f4949565dac8d6e7302 Mon Sep 17 00:00:00 2001 From: Harinn Date: Tue, 12 May 2026 13:49:38 +0700 Subject: [PATCH 1/2] python3Packages.aiorpcx: fix tests on python 3.14 --- .../python-modules/aiorpcx/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/aiorpcx/default.nix b/pkgs/development/python-modules/aiorpcx/default.nix index 7210ed7ce019..db81da35fc38 100644 --- a/pkgs/development/python-modules/aiorpcx/default.nix +++ b/pkgs/development/python-modules/aiorpcx/default.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch2, buildPythonPackage, setuptools, websockets, @@ -20,6 +21,20 @@ buildPythonPackage rec { hash = "sha256-mFg9mWrlnfXiQpgZ1rxvUy9TBfwy41XEKmsCf2nvxGo="; }; + patches = [ + # fix asyncio.get_event_loop() usage in tests for python 3.14 + (fetchpatch2 { + url = "https://github.com/kyuupichan/aiorpcX/commit/b8ce32889c45c98b44c4e247ec0b0ae206e9ee91.patch?full_index=1"; + hash = "sha256-EIxGR3M5dfX4ZyPFftVdPFcsg9WwYBG/h31edu6Te8o="; + includes = [ "tests/test_util.py" ]; + }) + # make test_misc async so it runs inside pytest-asyncio's loop on python 3.14 + (fetchpatch2 { + url = "https://github.com/kyuupichan/aiorpcX/commit/25043621700672ee375d20b78804118acac43b1b.patch?full_index=1"; + hash = "sha256-q4tqbcPQj6SU06Xn/4ns1NriLLx8zmUOGJo11ucA6Dk="; + }) + ]; + build-system = [ setuptools ]; optional-dependencies.ws = [ websockets ]; From 8486ce0d34a4f19752837ae08ae2debfdb76bfd6 Mon Sep 17 00:00:00 2001 From: Harinn Date: Tue, 12 May 2026 15:15:04 +0700 Subject: [PATCH 2/2] python3Packages.aiorpcx: allow local networking on darwin --- pkgs/development/python-modules/aiorpcx/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/aiorpcx/default.nix b/pkgs/development/python-modules/aiorpcx/default.nix index db81da35fc38..50bb05f7ac11 100644 --- a/pkgs/development/python-modules/aiorpcx/default.nix +++ b/pkgs/development/python-modules/aiorpcx/default.nix @@ -52,6 +52,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiorpcx" ]; + __darwinAllowLocalNetworking = true; + meta = { description = "Transport, protocol and framing-independent async RPC client and server implementation"; homepage = "https://github.com/kyuupichan/aiorpcX";