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.

54 lines
1.3 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";
2023-08-09 11:24:52 +00:00
version = "3.17.9";
2019-11-22 09:39:14 +00:00
src = fetchFromGitHub {
owner = "virtuslab";
repo = pname;
rev = "v${version}";
2023-08-09 11:24:52 +00:00
hash = "sha256-oU4c57XU/DLGjOl/CyCt6oG3QaB2xnrOEg+sUAd7sww=";
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
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 ];
2019-11-22 09:39:14 +00:00
};
}