summary refs log tree commit diff
path: root/pkgs/applications/networking/flexget/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-10-01 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2023-10-01 04:20:00 +0000
commit673d22a71cdbbabe05effd581a916b2c27ec1204 (patch)
treed13af66de917ab250d783657c54f8b992976fa0f /pkgs/applications/networking/flexget/default.nix
parent5bdf9eaa61220d3af6b022be863c27c325d5d102 (diff)
downloadnixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar.gz
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar.bz2
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar.lz
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar.xz
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.tar.zst
nixpkgs-673d22a71cdbbabe05effd581a916b2c27ec1204.zip
flexget: pin transmission-rpc version
Diffstat (limited to 'pkgs/applications/networking/flexget/default.nix')
-rw-r--r--pkgs/applications/networking/flexget/default.nix23
1 files changed, 20 insertions, 3 deletions
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