diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-08-22 01:23:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 01:23:28 -0500 |
commit | e509b6094447f073b4d9b6add7edf4782931b2ae (patch) | |
tree | 4b801a9730d1b9072915b93bb181da976bce2372 | |
parent | 891efb73a6b62a27e41400a40dc7e24857f65147 (diff) | |
parent | 94321faf13ed6f3f258511a35a874a390a9cf28f (diff) |
Merge pull request #135196 from marsam/update-flexget
flexget: 3.1.133 -> 3.1.135
-rw-r--r-- | pkgs/applications/networking/flexget/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 3d726eba9808..edf467d51208 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -1,16 +1,22 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchFromGitHub }: python3Packages.buildPythonApplication rec { pname = "flexget"; - version = "3.1.133"; + version = "3.1.135"; - src = python3Packages.fetchPypi { - pname = "FlexGet"; - inherit version; - sha256 = "1mfmy2nbxx9k6hnhwxpf2062rwspigfhbvkpr161grd5amcs2cr6"; + # Fetch from GitHub in order to use `requirements.in` + src = fetchFromGitHub { + owner = "flexget"; + repo = "flexget"; + rev = "v${version}"; + sha256 = "01qj9pp3b7qxpv1yzak4ql1d95dq6611crpp4y5z44mg5gmbql7g"; }; postPatch = '' + # Symlink requirements.in because upstream uses `pip-compile` which yields + # python-version dependent requirements + ln -sf requirements.in requirements.txt + # remove dependency constraints sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt |