git.iko.soy/typeable/nixpkgs
on master help sign in
flexget: override jsonschema
commitb8a447a21aa8d745d43c2503b37f2f6e40b214c3 authorFabian Affolter <mail@fabian-affolter.ch> dateMon 14 Feb 2022, 17:02 (5 years ago) parentc3a5c49
1 file changed+29−3
pkgs/applications/networking/flexget/default.nix+29−3
pkgs/applications/networking/flexget/default.nix+29−3
@@ -1,8 +1,34 @@
1−{ lib, python3Packages, fetchFromGitHub }:
1+{ lib
2+, fetchFromGitHub
3+, python3
4+}:
25
3−python3Packages.buildPythonApplication rec {
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 {
429 pname = "flexget";
530 version = "3.2.18";
31+ format = "setuptools";
632
733 # Fetch from GitHub in order to use `requirements.in`
834 src = fetchFromGitHub {
@@ -28,7 +54,7 @@ python3Packages.buildPythonApplication rec {
2854 # ~400 failures
2955 doCheck = false;
3056
31− propagatedBuildInputs = with python3Packages; [
57+ propagatedBuildInputs = with py.pkgs; [
3258 # See https://github.com/Flexget/Flexget/blob/master/requirements.in
3359 APScheduler
3460 beautifulsoup4