From 256993cc59a387f930e8bcebcfe5e67df161b431 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Jul 2021 12:46:49 +0200 Subject: [PATCH] gitlint: override requirements --- pkgs/tools/misc/gitlint/default.nix | 49 +++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/misc/gitlint/default.nix b/pkgs/tools/misc/gitlint/default.nix index 014cc76e7138..267cdee72338 100644 --- a/pkgs/tools/misc/gitlint/default.nix +++ b/pkgs/tools/misc/gitlint/default.nix @@ -2,12 +2,41 @@ , buildPythonApplication , fetchFromGitHub , gitMinimal -, arrow -, click -, sh -, wheel +, python3 }: +let + py = python3.override { + packageOverrides = self: super: { + + click = super.click.overridePythonAttrs (oldAttrs: rec { + version = "7.1.2"; + src = oldAttrs.src.override { + inherit version; + sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"; + }; + }); + + arrow = super.arrow.overridePythonAttrs (oldAttrs: rec { + version = "1.0.3"; + src = oldAttrs.src.override { + inherit version; + sha256 = "0793badh4hgbk2c5g70hmbl7n3d4g5d87bcflld0w9rjwy59r71r"; + }; + }); + + sh = super.sh.overridePythonAttrs (oldAttrs: rec { + version = "1.14.1"; + src = oldAttrs.src.override { + inherit version; + sha256 = "13hxgifab9ichla13qaa7sh8r0il7vs1r21js72s0n355zr9mair"; + }; + }); + }; + }; +in +with py.pkgs; + buildPythonApplication rec { pname = "gitlint"; version = "0.15.1"; @@ -19,7 +48,9 @@ buildPythonApplication rec { sha256 = "sha256-CqmE4V+svSuQAsoX0I3NpUqPU5CQf3fyCHJPrjUjHF4="; }; - nativeBuildInputs = [ wheel ]; + nativeBuildInputs = [ + wheel + ]; propagatedBuildInputs = [ arrow @@ -35,10 +66,10 @@ buildPythonApplication rec { gitMinimal ]; - meta = { + meta = with lib; { description = "Linting for your git commit messages"; - homepage = "http://jorisroovers.github.io/gitlint"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ ethancedwards8 ]; + homepage = "https://jorisroovers.com/gitlint/"; + license = licenses.mit; + maintainers = with maintainers; [ ethancedwards8 fab ]; }; }