flexget: pin transmission-rpc version

This commit is contained in:
Mario Rodas 2023-10-01 04:20:00 +00:00
parent 5bdf9eaa61
commit 673d22a71c

View file

@ -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