depot/third_party/nixpkgs/pkgs/tools/misc/gitlint/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

44 lines
757 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, gitMinimal
, arrow
, click
, sh
, wheel
}:
buildPythonApplication rec {
pname = "gitlint";
version = "0.15.1";
src = fetchFromGitHub {
owner = "jorisroovers";
repo = "gitlint";
rev = "v${version}";
sha256 = "sha256-CqmE4V+svSuQAsoX0I3NpUqPU5CQf3fyCHJPrjUjHF4=";
};
nativeBuildInputs = [ wheel ];
propagatedBuildInputs = [
arrow
click
sh
];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
checkInputs = [
gitMinimal
];
meta = {
description = "Linting for your git commit messages";
homepage = "http://jorisroovers.github.io/gitlint";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}