gitlint: override requirements
This commit is contained in:
parent
b118976151
commit
256993cc59
|
@ -2,12 +2,41 @@
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, gitMinimal
|
, gitMinimal
|
||||||
, arrow
|
, python3
|
||||||
, click
|
|
||||||
, sh
|
|
||||||
, wheel
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
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 {
|
buildPythonApplication rec {
|
||||||
pname = "gitlint";
|
pname = "gitlint";
|
||||||
version = "0.15.1";
|
version = "0.15.1";
|
||||||
|
@ -19,7 +48,9 @@ buildPythonApplication rec {
|
||||||
sha256 = "sha256-CqmE4V+svSuQAsoX0I3NpUqPU5CQf3fyCHJPrjUjHF4=";
|
sha256 = "sha256-CqmE4V+svSuQAsoX0I3NpUqPU5CQf3fyCHJPrjUjHF4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ wheel ];
|
nativeBuildInputs = [
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
arrow
|
arrow
|
||||||
|
@ -35,10 +66,10 @@ buildPythonApplication rec {
|
||||||
gitMinimal
|
gitMinimal
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Linting for your git commit messages";
|
description = "Linting for your git commit messages";
|
||||||
homepage = "http://jorisroovers.github.io/gitlint";
|
homepage = "https://jorisroovers.com/gitlint/";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
maintainers = with maintainers; [ ethancedwards8 fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue