diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-02-14 17:02:58 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-02-14 17:02:58 +0100 |
commit | b8a447a21aa8d745d43c2503b37f2f6e40b214c3 (patch) | |
tree | b0f56b8a808e48ae10104f4b08a151cc31b27f64 /pkgs/applications/networking/flexget | |
parent | c3a5c4942921c86559ba8542259bbecdcacaeac9 (diff) |
flexget: override jsonschema
Diffstat (limited to 'pkgs/applications/networking/flexget')
-rw-r--r-- | pkgs/applications/networking/flexget/default.nix | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/pkgs/applications/networking/flexget/default.nix b/pkgs/applications/networking/flexget/default.nix index 6c3a9b769350b..aa675268cd56f 100644 --- a/pkgs/applications/networking/flexget/default.nix +++ b/pkgs/applications/networking/flexget/default.nix @@ -1,8 +1,34 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ lib +, fetchFromGitHub +, python3 +}: -python3Packages.buildPythonApplication rec { +let + py = python3.override { + packageOverrides = self: super: { + + jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec { + version = "3.2.0"; + + src = super.fetchPypi { + inherit (oldAttrs) pname; + inherit version; + hash = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + doCheck = false; + }); + }; + }; +in +with py.pkgs; + +buildPythonApplication rec { pname = "flexget"; version = "3.2.18"; + format = "setuptools"; # Fetch from GitHub in order to use `requirements.in` src = fetchFromGitHub { @@ -28,7 +54,7 @@ python3Packages.buildPythonApplication rec { # ~400 failures doCheck = false; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = with py.pkgs; [ # See https://github.com/Flexget/Flexget/blob/master/requirements.in APScheduler beautifulsoup4 |