3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/commitizen/default.nix

52 lines
951 B
Nix
Raw Normal View History

2022-01-03 19:48:50 +00:00
{ buildPythonApplication
, lib
, fetchFromGitHub
, poetry
, termcolor
, questionary
, colorama
, decli
, tomlkit
, jinja2
, pyyaml
, argcomplete
, typing-extensions
2022-01-26 07:25:23 +00:00
, packaging
2022-01-03 19:48:50 +00:00
}:
buildPythonApplication rec {
pname = "commitizen";
2022-01-26 07:25:23 +00:00
version = "2.20.4";
2022-01-03 19:48:50 +00:00
src = fetchFromGitHub {
owner = "commitizen-tools";
repo = pname;
rev = "v${version}";
2022-01-26 07:25:23 +00:00
sha256 = "sha256-2DhWiUAkAkyNxYB1CGzUB2nGZeCWvFqSztrxasUPSXw=";
2022-01-03 19:48:50 +00:00
};
format = "pyproject";
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
termcolor
questionary
colorama
decli
tomlkit
jinja2
pyyaml
argcomplete
typing-extensions
2022-01-26 07:25:23 +00:00
packaging
2022-01-03 19:48:50 +00:00
];
meta = with lib; {
description = "Tool to create committing rules for projects, auto bump versions, and generate changelogs";
homepage = "https://github.com/commitizen-tools/commitizen";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}