git.iko.soy/typeable/nixpkgs
on master help sign in
flexget: relax dependency constrains
commit2c4ac5f4025701508a66c98bfad4c0cf4304d85b authorFabian Affolter <mail@fabian-affolter.ch> dateWed 2 Mar 2022, 21:40 (5 years ago) parentb8a447a
1 file changed+5−28
pkgs/applications/networking/flexget/default.nix+5−28
pkgs/applications/networking/flexget/default.nix+5−28
@@ -1,41 +1,18 @@
11{ lib
2+, python3Packages
23, fetchFromGitHub
3−, python3
44}:
55
6−let
7− py = python3.override {
8− packageOverrides = self: super: {
9−
10− jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec {
11− version = "3.2.0";
12−
13− src = super.fetchPypi {
14− inherit (oldAttrs) pname;
15− inherit version;
16− hash = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo=";
17− };
18−
19− SETUPTOOLS_SCM_PRETEND_VERSION = version;
20−
21− doCheck = false;
22− });
23− };
24− };
25−in
26−with py.pkgs;
27−
28−buildPythonApplication rec {
6+python3Packages.buildPythonApplication rec {
297 pname = "flexget";
308 version = "3.2.18";
31− format = "setuptools";
329
3310 # Fetch from GitHub in order to use `requirements.in`
3411 src = fetchFromGitHub {
3512 owner = "flexget";
3613 repo = "flexget";
3714 rev = "v${version}";
38− sha256 = "sha256-68tD7I7MI/Cp94tp6c4lQx+8xwRnJTKTF/3SWz4Ddgg=";
15+ hash = "sha256-68tD7I7MI/Cp94tp6c4lQx+8xwRnJTKTF/3SWz4Ddgg=";
3916 };
4017
4118 postPatch = ''
@@ -44,7 +21,7 @@ buildPythonApplication rec {
4421 ln -sf requirements.in requirements.txt
4522
4623 # remove dependency constraints
47− sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
24+ sed 's/[>=]=.*//' -i requirements.txt
4825
4926 # "zxcvbn-python" was renamed to "zxcvbn", and we don't have the former in
5027 # nixpkgs. See: https://github.com/NixOS/nixpkgs/issues/62110
@@ -54,7 +31,7 @@ buildPythonApplication rec {
5431 # ~400 failures
5532 doCheck = false;
5633
57− propagatedBuildInputs = with py.pkgs; [
34+ propagatedBuildInputs = with python3Packages; [
5835 # See https://github.com/Flexget/Flexget/blob/master/requirements.in
5936 APScheduler
6037 beautifulsoup4