889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, git
|
|
, nix-update-script
|
|
, testers
|
|
, git-machete
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "git-machete";
|
|
version = "3.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "virtuslab";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-BhR1dE6+K7UKaCbLmWPtLMyq0oIj/xYenXp5s7kRINc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
checkInputs = [ git pytest-mock pytestCheckHook ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
|
|
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
|
|
installShellCompletion --fish completion/git-machete.fish
|
|
'';
|
|
|
|
postInstallCheck = ''
|
|
test "$($out/bin/git-machete version)" = "git-machete version ${version}"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/VirtusLab/git-machete";
|
|
description = "Git repository organizer and rebase/merge workflow automation tool";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ blitz ];
|
|
};
|
|
}
|