diff --git a/pkgs/development/python-modules/grpclib/default.nix b/pkgs/development/python-modules/grpclib/default.nix index e1c167319a32..e4964bee1541 100644 --- a/pkgs/development/python-modules/grpclib/default.nix +++ b/pkgs/development/python-modules/grpclib/default.nix @@ -1,10 +1,10 @@ { lib, - async-timeout, buildPythonPackage, certifi, faker, fetchFromGitHub, + fetchpatch, googleapis-common-protos, h2, multidict, @@ -28,6 +28,15 @@ buildPythonPackage rec { hash = "sha256-Z+DMwGMUxNTQ7ABd4q/FgMHEZ/NCOtst+6QfQJm3jVU="; }; + patches = [ + # https://github.com/vmagamedov/grpclib/pull/209 + (fetchpatch { + name = "replace-async-timeout-with-asyncio-timeout-patch"; + url = "https://github.com/vmagamedov/grpclib/commit/36b23ce3ca3f1742e39b50f939d13cd08b4f28ac.patch"; + hash = "sha256-3ztLBOFpTK8CFIp8a6suhWXY5kIBCBRWBX/oAyYU4yI="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ @@ -38,7 +47,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook pytest-asyncio_0 - async-timeout faker googleapis-common-protos certifi