@@ -2,12 +2,41 @@
22, buildPythonApplication
33, fetchFromGitHub
44, gitMinimal
5−, arrow
6−, click
7−, sh
8−, wheel
5+, python3
96}:
107
8+let
9+ py = python3.override {
10+ packageOverrides = self: super: {
11+
12+ click = super.click.overridePythonAttrs (oldAttrs: rec {
13+ version = "7.1.2";
14+ src = oldAttrs.src.override {
15+ inherit version;
16+ sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj";
17+ };
18+ });
19+
20+ arrow = super.arrow.overridePythonAttrs (oldAttrs: rec {
21+ version = "1.0.3";
22+ src = oldAttrs.src.override {
23+ inherit version;
24+ sha256 = "0793badh4hgbk2c5g70hmbl7n3d4g5d87bcflld0w9rjwy59r71r";
25+ };
26+ });
27+
28+ sh = super.sh.overridePythonAttrs (oldAttrs: rec {
29+ version = "1.14.1";
30+ src = oldAttrs.src.override {
31+ inherit version;
32+ sha256 = "13hxgifab9ichla13qaa7sh8r0il7vs1r21js72s0n355zr9mair";
33+ };
34+ });
35+ };
36+ };
37+in
38+with py.pkgs;
39+
1140buildPythonApplication rec {
1241 pname = "gitlint";
1342 version = "0.15.1";
@@ -19,7 +48,9 @@ buildPythonApplication rec {
1948 sha256 = "sha256-CqmE4V+svSuQAsoX0I3NpUqPU5CQf3fyCHJPrjUjHF4=";
2049 };
2150
22− nativeBuildInputs = [ wheel ];
51+ nativeBuildInputs = [
52+ wheel
53+ ];
2354
2455 propagatedBuildInputs = [
2556 arrow
@@ -35,10 +66,10 @@ buildPythonApplication rec {
3566 gitMinimal
3667 ];
3768
38− meta = {
69+ meta = with lib; {
3970 description = "Linting for your git commit messages";
40− homepage = "http://jorisroovers.github.io/gitlint";
41− license = lib.licenses.mit;
42− maintainers = with lib.maintainers; [ ethancedwards8 ];
71+ homepage = "https://jorisroovers.com/gitlint/";
72+ license = licenses.mit;
73+ maintainers = with maintainers; [ ethancedwards8 fab ];
4374 };
4475}