diff options
Diffstat (limited to 'pkgs/applications/networking/flexget/default.nix')
-rw-r--r-- | pkgs/applications/networking/flexget/default.nix | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 1ed0ba03678..792d5c93a9e 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -4,9 +4,27 @@ , fetchFromGitHub }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + # FlexGet doesn't support transmission-rpc>=5 yet + # https://github.com/NixOS/nixpkgs/issues/258504 + # https://github.com/Flexget/Flexget/issues/3847 + 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"; + version = "3.9.18"; format = "pyproject"; # Fetch from GitHub in order to use `requirements.in` @@ -14,7 +32,7 @@ python3.pkgs.buildPythonApplication rec { owner = "Flexget"; repo = "Flexget"; rev = "refs/tags/v${version}"; - hash = "sha256-cUcfXoqNKe5Ok0vDqe0uCpV84XokKe4iXbWeTm1Qv14="; + hash = "sha256-Wxi6+6c/PK990YCoFKBMxJbYgMkS9y46hNIlkVhjbA4="; }; postPatch = '' @@ -22,12 +40,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 |