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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, pytest-mock
, pytestCheckHook
, fetchFromGitHub
, installShellFiles
, git
, nix-update-script
, testers
, git-machete
}:
2019-11-22 09:39:14 +00:00
buildPythonApplication rec {
pname = "git-machete";
2024-04-16 07:58:08 +00:00
version = "3.25.0";
2019-11-22 09:39:14 +00:00
src = fetchFromGitHub {
owner = "virtuslab";
repo = pname;
rev = "v${version}";
2024-04-16 07:58:08 +00:00
hash = "sha256-tLEuSwM8X0+oQDB9fmj5OQsC7iA906EQZz3yvB6rXfk=";
2019-11-22 09:39:14 +00:00
};
nativeBuildInputs = [ installShellFiles ];
2019-11-22 09:39:14 +00:00
nativeCheckInputs = [
2022-12-30 16:46:26 +00:00
git
pytest-mock
pytestCheckHook
];
2019-11-22 09:39:14 +00:00
disabledTests = [
# Requires fully functioning shells including zsh modules and bash
# completion.
"completion_e2e"
];
2019-11-22 09:39:14 +00:00
postInstall = ''
installShellCompletion --bash --name git-machete completion/git-machete.completion.bash
installShellCompletion --zsh --name _git-machete completion/git-machete.completion.zsh
2022-02-15 21:43:39 +00:00
installShellCompletion --fish completion/git-machete.fish
2019-11-22 09:39:14 +00:00
'';
2021-10-13 02:33:23 +00:00
postInstallCheck = ''
test "$($out/bin/git-machete version)" = "git-machete version ${version}"
'';
passthru = {
updateScript = nix-update-script { };
};
2019-11-22 09:39:14 +00:00
meta = with lib; {
homepage = "https://github.com/VirtusLab/git-machete";
description = "Git repository organizer and rebase/merge workflow automation tool";
2022-12-30 16:46:26 +00:00
changelog = "https://github.com/VirtusLab/git-machete/releases/tag/v${version}";
2019-11-22 09:39:14 +00:00
license = licenses.mit;
2021-09-02 13:02:08 +00:00
maintainers = with maintainers; [ blitz ];
2023-11-27 01:17:53 +00:00
mainProgram = "git-machete";
2019-11-22 09:39:14 +00:00
};
}