From 1a05ffd77010ed0192b5c297956ca7c7ffdfe7a0 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 10 Oct 2026 11:12:08 -0400 Subject: [PATCH] Update aiohttp-client-cache. The current version in nixpkgs has not been updated for aiohttp 3.14. Error: TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' --- nix/configuration/configuration.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 9ec6a6c..1f99ba6 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -282,6 +282,27 @@ in (disableOptimizationsPython3 "zopfli") # /nix/store/idjhlmljrapzm3i1svl5x9mdwfxxj51v-pytest-check-hook/nix-support/setup-hook: line 23: 280 Segmentation fault (core dumped) /nix/store/87l6i0czch42nzv39ydwld5hnhcq0b65-python3-3.14.7/bin/python3.14 "${flagsArray[@]}" (disableOptimizations "zopfli") (disableOptimizations "nototools") # Needs to use the same version of python as the zopfli package + (final: prev: { + pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ + (python-final: python-prev: { + aiohttp-client-cache = python-prev.aiohttp-client-cache.overridePythonAttrs ( + oldAttrs: + let + version = "0.15.0"; + in + { + inherit version; + + src = final.fetchPypi { + pname = "aiohttp_client_cache"; + inherit version; + hash = "sha256-Jk+n1pvNsuT+mZTn9Bq17sfLuipfXiYNRE0AL5Ym43Q="; + }; + } + ); + }) + ]; + }) ]; # This option defines the first version of NixOS you have installed on this particular machine,