Files
nixpkgs/pkgs/by-name/gi/git-aggregator/package.nix
2026-05-21 17:19:14 -06:00

52 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
gitMinimal,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "git-aggregator";
version = "4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "acsone";
repo = "git-aggregator";
tag = finalAttrs.version;
hash = "sha256-sZYh3CN15WTCQ59W24ERJdP48EJt571cbkswLQ3JL2g=";
};
build-system = with python3Packages; [
setuptools-scm
];
dependencies = with python3Packages; [
argcomplete
colorama
gitMinimal
kaptan
requests
];
nativeCheckInputs = [
gitMinimal
];
preCheck = ''
export HOME="$(mktemp -d)"
git config --global user.name John
git config --global user.email john@localhost
git config --global init.defaultBranch master
git config --global pull.rebase false
'';
meta = {
description = "Manage the aggregation of git branches from different remotes to build a consolidated one";
homepage = "https://github.com/acsone/git-aggregator";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ bbjubjub ];
mainProgram = "gitaggregate";
};
})