Merge pull request #333970 from r-ryantm/auto-update/python312Packages.commitizen
python312Packages.commitizen: 3.28.0 -> 3.29.0
This commit is contained in:
@@ -1,45 +1,46 @@
|
||||
{ lib
|
||||
, commitizen
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, git
|
||||
, pythonOlder
|
||||
, stdenv
|
||||
, installShellFiles
|
||||
, poetry-core
|
||||
, nix-update-script
|
||||
, testers
|
||||
, argcomplete
|
||||
, charset-normalizer
|
||||
, colorama
|
||||
, decli
|
||||
, importlib-metadata
|
||||
, jinja2
|
||||
, packaging
|
||||
, pyyaml
|
||||
, questionary
|
||||
, termcolor
|
||||
, tomlkit
|
||||
, py
|
||||
, pytest-freezer
|
||||
, pytest-mock
|
||||
, pytest-regressions
|
||||
, pytest7CheckHook
|
||||
, deprecated
|
||||
{
|
||||
lib,
|
||||
commitizen,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
git,
|
||||
pythonOlder,
|
||||
stdenv,
|
||||
installShellFiles,
|
||||
poetry-core,
|
||||
nix-update-script,
|
||||
testers,
|
||||
argcomplete,
|
||||
charset-normalizer,
|
||||
colorama,
|
||||
decli,
|
||||
importlib-metadata,
|
||||
jinja2,
|
||||
packaging,
|
||||
pyyaml,
|
||||
questionary,
|
||||
termcolor,
|
||||
tomlkit,
|
||||
py,
|
||||
pytest-freezer,
|
||||
pytest-mock,
|
||||
pytest-regressions,
|
||||
pytest7CheckHook,
|
||||
deprecated,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "commitizen";
|
||||
version = "3.28.0";
|
||||
format = "pyproject";
|
||||
version = "3.29.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "commitizen-tools";
|
||||
repo = pname;
|
||||
repo = "commitizen";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Z/L8TvMoee3qB+P6HUJEQxqw3nDEbBQabQOUyx0iugw=";
|
||||
hash = "sha256-7EQFip8r2Ey7Rbbwns1gvhsBOj7Hjm94NYhq8aANDIo=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
@@ -47,12 +48,11 @@ buildPythonPackage rec {
|
||||
"decli"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
installShellFiles
|
||||
];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
dependencies = [
|
||||
argcomplete
|
||||
charset-normalizer
|
||||
colorama
|
||||
@@ -108,13 +108,12 @@ buildPythonPackage rec {
|
||||
let
|
||||
register-python-argcomplete = lib.getExe' argcomplete "register-python-argcomplete";
|
||||
in
|
||||
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)
|
||||
''
|
||||
installShellCompletion --cmd cz \
|
||||
--bash <(${register-python-argcomplete} --shell bash $out/bin/cz) \
|
||||
--zsh <(${register-python-argcomplete} --shell zsh $out/bin/cz) \
|
||||
--fish <(${register-python-argcomplete} --shell fish $out/bin/cz)
|
||||
'';
|
||||
lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd cz \
|
||||
--bash <(${register-python-argcomplete} --shell bash $out/bin/cz) \
|
||||
--zsh <(${register-python-argcomplete} --shell zsh $out/bin/cz) \
|
||||
--fish <(${register-python-argcomplete} --shell fish $out/bin/cz)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
@@ -130,6 +129,9 @@ buildPythonPackage rec {
|
||||
changelog = "https://github.com/commitizen-tools/commitizen/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
mainProgram = "cz";
|
||||
maintainers = with maintainers; [ lovesegfault anthonyroussel ];
|
||||
maintainers = with maintainers; [
|
||||
lovesegfault
|
||||
anthonyroussel
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user