Unverified Commit 66779272 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #258512 from marsam/fix-flexget-build

flexget: pin transmission-rpc version
parents 5bdf9eaa 673d22a7
Loading
Loading
Loading
Loading
+20 −3
Original line number Diff line number Diff line
@@ -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