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)