nixpkgs-suyu/pkgs/applications/version-management/git-and-tools/git-machete/default.nix

34 lines
986 B
Nix
Raw Normal View History

2019-11-22 10:39:14 +01:00
{ lib, buildPythonApplication, fetchPypi
, installShellFiles, pbr
, flake8, mock, pycodestyle, pylint, tox }:
buildPythonApplication rec {
pname = "git-machete";
version = "2.15.7";
2019-11-22 10:39:14 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0djbl4s9i7bs7kkldr7453yayi38s8mx0i41mkd0j2cvv5r9himr";
2019-11-22 10:39:14 +01:00
};
nativeBuildInputs = [ installShellFiles pbr ];
# TODO: Add missing check inputs (2019-11-22):
# - stestr
doCheck = false;
checkInputs = [ flake8 mock pycodestyle pylint tox ];
postInstall = ''
installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
'';
meta = with lib; {
homepage = "https://github.com/VirtusLab/git-machete";
description = "Git repository organizer and rebase/merge workflow automation tool";
2019-11-22 10:39:14 +01:00
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.blitz ];
};
}