diff --git a/pkgs/development/python-modules/aiorpcx/default.nix b/pkgs/development/python-modules/aiorpcx/default.nix index 7210ed7ce019..50bb05f7ac11 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 ]; @@ -37,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";