dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, git
|
|
, nix-update-script
|
|
, testers
|
|
, git-machete
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "git-machete";
|
|
version = "3.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "virtuslab";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-94qYCyWqVwMMptlJIe4o4/mEHnhcMubcupd+Qs2SYH0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
nativeCheckInputs = [
|
|
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 { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/VirtusLab/git-machete";
|
|
description = "Git repository organizer and rebase/merge workflow automation tool";
|
|
changelog = "https://github.com/VirtusLab/git-machete/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ blitz ];
|
|
};
|
|
}
|