Files
nixpkgs/pkgs/by-name/gi/git-machete/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.5 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
installShellFiles,
git,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
pname = "git-machete";
version = "3.36.4";
pyproject = true;
src = fetchFromGitHub {
owner = "virtuslab";
repo = "git-machete";
tag = "v${version}";
hash = "sha256-9xJCwu2TeWsxut6y4VJV6Qou4G81kXcGPHJPrOrsGuc=";
};
build-system = with python3.pkgs; [ setuptools ];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [
git
]
++ (with python3.pkgs; [
pytest-mock
pytestCheckHook
]);
disabledTests = [
# Requires fully functioning shells including zsh modules and bash
# completion.
"completion_e2e"
];
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 = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ blitz ];
mainProgram = "git-machete";
};
}