From d80949067f6f724e8513aae939c308ad5b571b86 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Sat, 18 Sep 2021 17:47:13 +0200 Subject: [PATCH] paperless-ng: fix redis connection paperless-ng is not yet compatible with aioredis 2, which was updated with the last python update, so pin its version to 1.3.1. --- pkgs/applications/office/paperless-ng/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/paperless-ng/default.nix b/pkgs/applications/office/paperless-ng/default.nix index e84b3c794433..f36d46a7f0dd 100644 --- a/pkgs/applications/office/paperless-ng/default.nix +++ b/pkgs/applications/office/paperless-ng/default.nix @@ -27,12 +27,20 @@ let # https://github.com/Koed00/django-q/issues/526 django-q = super.django-q.overridePythonAttrs (oldAttrs: rec { version = "1.3.4"; - src = super.fetchPypi { - inherit (oldAttrs) pname; + src = oldAttrs.src.override { inherit version; sha256 = "Uj1U3PG2YVLBtlj5FPAO07UYo0MqnezUiYc4yo274Q8="; }; }); + + # Incompatible with aioredis 2 + aioredis = super.aioredis.overridePythonAttrs (oldAttrs: rec { + version = "1.3.1"; + src = oldAttrs.src.override { + inherit version; + sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m"; + }; + }); }; };