From ea6add9ecb45377e554bf736ae443442f66a08fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 13 May 2025 12:10:12 -0700 Subject: [PATCH] python313Packages.directv: fix build --- pkgs/development/python-modules/directv/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/directv/default.nix b/pkgs/development/python-modules/directv/default.nix index 43a1a1d0e655..57913059cfb9 100644 --- a/pkgs/development/python-modules/directv/default.nix +++ b/pkgs/development/python-modules/directv/default.nix @@ -21,6 +21,12 @@ buildPythonPackage rec { sha256 = "19jckf6qvl8fwi8yff1qy8c44xdz3zpi1ip1md6zl2c503qc91mk"; }; + postPatch = '' + # TypeError: 'Timeout' object does not support the context manager protocol + substituteInPlace directv/directv.py \ + --replace-fail "with async_timeout.timeout" "async with async_timeout.timeout" + ''; + propagatedBuildInputs = [ aiohttp yarl