diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/gitlint/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/gitlint/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/gitlint/default.nix b/nixpkgs/pkgs/tools/misc/gitlint/default.nix new file mode 100644 index 000000000000..014cc76e7138 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/gitlint/default.nix @@ -0,0 +1,44 @@ +{ 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 ]; + }; +} |