gitlint: init at 0.15.1

This commit is contained in:
Ethan Edwards 2021-06-20 23:50:16 -04:00
parent a9d265cd39
commit 1c2b098fa4
No known key found for this signature in database
GPG key ID: F1AD8EEE1366610B
2 changed files with 46 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -1535,6 +1535,8 @@ in
gitless = callPackage ../applications/version-management/gitless { python = python3; };
gitlint = python3Packages.callPackage ../tools/misc/gitlint { };
gitter = callPackage ../applications/networking/instant-messengers/gitter { };
gjs = callPackage ../development/libraries/gjs { };