biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / version-management / gitlint / default.nix
blobd29bf08855f079cd5bcff9ce2845ad574e41edb8
1 { lib
2 , buildPythonApplication
3 , fetchFromGitHub
4 , gitMinimal
5 , python3
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "gitlint";
10   version = "0.19.1";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "jorisroovers";
15     repo = "gitlint";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-4SGkkC4LjZXTDXwK6jMOIKXR1qX76CasOwSqv8XUrjs=";
18   };
20   # Upstream splitted the project into gitlint and gitlint-core to
21   # simplify the dependency handling
22   sourceRoot = "${src.name}/gitlint-core";
24   nativeBuildInputs = with python3.pkgs; [
25     hatch-vcs
26     hatchling
27   ];
29   propagatedBuildInputs = with python3.pkgs; [
30     arrow
31     click
32     sh
33   ];
35   nativeCheckInputs = with python3.pkgs; [
36     gitMinimal
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "gitlint"
42   ];
44   meta = with lib; {
45     description = "Linting for your git commit messages";
46     homepage = "https://jorisroovers.com/gitlint/";
47     changelog = "https://github.com/jorisroovers/gitlint/releases/tag/v${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ethancedwards8 fab ];
50     mainProgram = "gitlint";
51   };