diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index b9f1f9e1c72a..bf6a0326ff4e 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch2, substituteAll, isPy310, isPyPy, @@ -45,14 +46,14 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.11.11"; + version = "3.11.12"; pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp"; tag = "v${version}"; - hash = "sha256-a4h8oFJxo1TSuhIjdUC0wqJSsepmzq6vjn5mwjw4bIw="; + hash = "sha256-GveluMxw100ZllDF+MT4QkZVD9q7UWHwF7IBK85J/j0="; }; patches = [ @@ -61,6 +62,12 @@ buildPythonPackage rec { llhttpDev = lib.getDev llhttp; llhttpLib = lib.getLib llhttp; }) + (fetchpatch2 { + # https://github.com/aio-libs/aiohttp/issues/10421 + # https://github.com/aio-libs/aiohttp/pull/10423 + url = "https://github.com/aio-libs/aiohttp/commit/51daf7190e7674773c22011a4e443df8b5e66437.patch"; + hash = "sha256-fADetk2tqg92J2sSgzKVTEhbQRSYl6430dxdVZuFx5I="; + }) ]; postPatch = ''