2021-06-21 05:50:16 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gitMinimal
|
2021-07-09 12:46:49 +02:00
|
|
|
, python3
|
2021-06-21 05:50:16 +02:00
|
|
|
}:
|
|
|
|
|
2021-07-09 12:46:49 +02:00
|
|
|
let
|
|
|
|
py = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
|
|
|
|
click = super.click.overridePythonAttrs (oldAttrs: rec {
|
2021-10-09 19:19:57 +02:00
|
|
|
version = "8.0.1";
|
2021-07-09 12:46:49 +02:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2021-10-09 19:19:57 +02:00
|
|
|
sha256 = "0ymdyf37acq4qxh038q0xx44qgj6y2kf0jd0ivvix6qij88w214c";
|
2021-07-09 12:46:49 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
arrow = super.arrow.overridePythonAttrs (oldAttrs: rec {
|
2021-10-09 19:19:57 +02:00
|
|
|
version = "1.2.0";
|
2021-07-09 12:46:49 +02:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2021-10-09 19:19:57 +02:00
|
|
|
sha256 = "0x70a057dqki2z1ny491ixbg980hg4lihc7g1zmy69g4v6xjkz0n";
|
2021-07-09 12:46:49 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
with py.pkgs;
|
|
|
|
|
2021-06-21 05:50:16 +02:00
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gitlint";
|
2021-10-09 19:19:57 +02:00
|
|
|
version = "0.16.0";
|
2021-06-21 05:50:16 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorisroovers";
|
|
|
|
repo = "gitlint";
|
|
|
|
rev = "v${version}";
|
2021-10-09 19:19:57 +02:00
|
|
|
sha256 = "1j6gfgqin5dmqd2qq0vib55d2r07s9sy4hwrvwlichxx5jjwncly";
|
2021-06-21 05:50:16 +02:00
|
|
|
};
|
|
|
|
|
2021-07-09 12:46:49 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wheel
|
|
|
|
];
|
2021-06-21 05:50:16 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
arrow
|
|
|
|
click
|
|
|
|
sh
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH="$out/bin:$PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
|
2021-07-09 12:46:49 +02:00
|
|
|
meta = with lib; {
|
2021-06-21 05:50:16 +02:00
|
|
|
description = "Linting for your git commit messages";
|
2021-07-09 12:46:49 +02:00
|
|
|
homepage = "https://jorisroovers.com/gitlint/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ethancedwards8 fab ];
|
2021-06-21 05:50:16 +02:00
|
|
|
};
|
|
|
|
}
|