From dce41cc5e8f1124a3f69d4a033ad7d3df9586c3a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 15:31:26 +0100 Subject: [PATCH] python313Packages.aioresponses: fix compat with aiohttp 3.11.0 --- .../python-modules/aioresponses/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 5b102d463171..929432d91e74 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, pythonOlder, # build-system @@ -28,6 +29,15 @@ buildPythonPackage rec { hash = "sha256-95XZ29otYXdIQOfjL1Nm9FdS0a3Bt0yTYq/QFylsfuE="; }; + patches = [ + (fetchpatch2 { + # https://github.com/pnuckowski/aioresponses/pull/262 + name = "aiohttp-3.11.0-compat.patch"; + url = "https://github.com/pnuckowski/aioresponses/commit/e909123c5a70180a54443899d26b44ada511cd39.patch"; + hash = "sha256-i/2rPtX64buVrVDSdB06NMOJCTdgENsxZDyphXWRwJI="; + }) + ]; + nativeBuildInputs = [ pbr setuptools