summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-08-22 00:54:55 -0500
committerMario Rodas <marsam@users.noreply.github.com>2021-08-22 00:54:55 -0500
commit94321faf13ed6f3f258511a35a874a390a9cf28f (patch)
treee0d31799e1afb4f61b5fc795bc5566ae05e9c16a
parenta2ce82238290589a2a9ab267bc0ef5030c4bce9c (diff)
flexget: 3.1.133 -> 3.1.135
-rw-r--r--pkgs/applications/networking/flexget/default.nix18
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