From 1cef70e82336888f897546094620416494d2083f Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 29 Apr 2022 10:36:48 +0200 Subject: [PATCH] sabnzbd: stay with sabyenc3 4.0.0 SABnzbd requires `sabyenc3` at version `4.0.0`, but it was updated to `5.0.1`. This fixes the error: ``` SABYenc disabled: no correct version found! (Found v5.0.1, expecting v4.0.0) ``` --- pkgs/servers/sabnzbd/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sabnzbd/default.nix b/pkgs/servers/sabnzbd/default.nix index 5f12ae0ee95b..503a2b46adf2 100644 --- a/pkgs/servers/sabnzbd/default.nix +++ b/pkgs/servers/sabnzbd/default.nix @@ -10,7 +10,21 @@ }: let - pythonEnv = python3.withPackages(ps: with ps; [ + + python = python3.override { + packageOverrides = final: prev: { + sabyenc3 = prev.sabyenc3.overridePythonAttrs (oldAttrs: rec { + version = "4.0.0"; + src = oldAttrs.src.override { + inherit version; + hash = "sha256-PwwQ2jChKIqh7jJ6E2hkqPquTDSN4MklghfJ+MkM0n0="; + }; + }); + }; + self = python; + }; + + pythonEnv = python.withPackages(ps: with ps; [ chardet cheetah3 cherrypy