2019-11-22 09:39:14 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi
|
|
|
|
, installShellFiles, pbr
|
|
|
|
, flake8, mock, pycodestyle, pylint, tox }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "git-machete";
|
2020-02-08 09:20:18 +00:00
|
|
|
version = "2.13.1";
|
2019-11-22 09:39:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-08 09:20:18 +00:00
|
|
|
sha256 = "1qq94x4rqn8vl5h11bn5d4x5ybsbj769kgf4lnj56my7si7qy8qn";
|
2019-11-22 09:39:14 +00: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 workflow automation tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.blitz ];
|
|
|
|
};
|
|
|
|
}
|