From 7617aa5f11549d0b7c0c33b5d034d08760e90159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 19 Oct 2025 17:46:34 -0700 Subject: [PATCH] python3Packages.aiohttp: only depend on async-timeout for Python < 3.11 --- pkgs/development/python-modules/aiohttp/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 7a7163164594..010a997cd972 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -94,15 +94,18 @@ buildPythonPackage rec { dependencies = [ aiohappyeyeballs aiosignal - async-timeout attrs frozenlist multidict propcache yarl ] + ++ lib.optionals (pythonOlder "3.11") [ + async-timeout + ] ++ optional-dependencies.speedups; + optional-dependencies.speedups = [ aiodns (if isPyPy then brotlicffi else brotli)