From 673d22a71cdbbabe05effd581a916b2c27ec1204 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 1 Oct 2023 04:20:00 +0000 Subject: flexget: pin transmission-rpc version --- pkgs/applications/networking/flexget/default.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'pkgs/applications/networking/flexget/default.nix') diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 1ed0ba03678..a21f41d545d 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -4,7 +4,24 @@ , fetchFromGitHub }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + # FlexGet doesn't support transmission-rpc>=5 yet + # https://github.com/NixOS/nixpkgs/issues/258504 + packageOverrides = self: super: { + transmission-rpc = super.transmission-rpc.overridePythonAttrs (old: rec { + version = "4.3.1"; + src = fetchPypi { + pname = "transmission_rpc"; + inherit version; + hash = "sha256-Kh2eARIfM6MuXu7RjPPVhvPZ+bs0AXkA4qUCbfu5hHU="; + }; + doCheck = false; + }); + }; + }; +in +python.pkgs.buildPythonApplication rec { pname = "flexget"; version = "3.9.10"; format = "pyproject"; @@ -22,12 +39,12 @@ python3.pkgs.buildPythonApplication rec { sed 's/[~<>=][^;]*//' -i requirements.txt ''; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ setuptools wheel ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ # See https://github.com/Flexget/Flexget/blob/master/requirements.txt apscheduler beautifulsoup4 -- cgit 1.4.1