diff options
author | Ethan Edwards <ethan@ethancedwards.com> | 2021-06-20 23:50:16 -0400 |
---|---|---|
committer | Ethan Edwards <ethan@ethancedwards.com> | 2021-06-21 10:59:47 -0400 |
commit | 1c2b098fa4d9631aef34f9d61fbbbb4a31eb52dc (patch) | |
tree | fa76dd9c8d7a1a281d999c8ceb5a871b586cf4e3 /pkgs/tools/misc/gitlint | |
parent | a9d265cd39c37a47d3e4209c39437bf62bef7d71 (diff) |
gitlint: init at 0.15.1
Diffstat (limited to 'pkgs/tools/misc/gitlint')
-rw-r--r-- | pkgs/tools/misc/gitlint/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/misc/gitlint/default.nix b/pkgs/tools/misc/gitlint/default.nix new file mode 100644 index 0000000000000..014cc76e71386 --- /dev/null +++ b/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 ]; + }; +} |