From c4a12396e52640f43076ce6f1e0781b60427f7bb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 28 Sep 2024 12:48:45 +0200 Subject: [PATCH] python312Packages.hass-nabucasa: backport aiohttp 3.10.6 compat patch --- .../python-modules/hass-nabucasa/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 62ccb7ef91d0..c0ea7712615d 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -8,6 +8,7 @@ ciso8601, cryptography, fetchFromGitHub, + fetchpatch2, pycognito, pyjwt, pytest-aiohttp, @@ -34,8 +35,15 @@ buildPythonPackage rec { hash = "sha256-/sY/JijBCcGcbMjoX0yuhFIWvU+TFVN8sRxBx+CDVVs="; }; - pythonRelaxDeps = [ "acme" ]; + patches = [ + (fetchpatch2 { + name = "aiohttp-3.10.6-compat.patch"; + url = "https://github.com/NabuCasa/hass-nabucasa/commit/b53bc12924ca6260583e250f49f663b2d1c11541.patch"; + hash = "sha256-Z5vTl0zuidFIo92Po8oLB0VfMC7c6mlq/mJkeHXOSpQ="; + }) + ]; + pythonRelaxDeps = [ "acme" ]; build-system = [ setuptools ];