about summary refs log tree commit diff
path: root/pkgs/applications/networking/flexget
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-02-14 17:02:58 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-02-14 17:02:58 +0100
commitb8a447a21aa8d745d43c2503b37f2f6e40b214c3 (patch)
treeb0f56b8a808e48ae10104f4b08a151cc31b27f64 /pkgs/applications/networking/flexget
parentc3a5c4942921c86559ba8542259bbecdcacaeac9 (diff)
flexget: override jsonschema
Diffstat (limited to 'pkgs/applications/networking/flexget')
-rw-r--r--pkgs/applications/networking/flexget/default.nix32
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