2021-11-05 23:41:28 +01:00
|
|
|
{ lib, git, python3Packages }:
|
2021-05-22 12:17:05 +02:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "git-aggregator";
|
2021-11-05 23:41:28 +01:00
|
|
|
version = "2.1.0";
|
2021-05-22 12:17:05 +02:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-05 23:41:28 +01:00
|
|
|
sha256 = "sha256-79xNPzYP1j71sU5wZM5e2xTqQExqQEdxXPxbk4T/Scw=";
|
2021-05-22 12:17:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-11-05 23:41:28 +01:00
|
|
|
|
2021-05-22 12:17:05 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
argcomplete
|
|
|
|
colorama
|
|
|
|
git
|
|
|
|
kaptan
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
2021-11-05 23:41:28 +01:00
|
|
|
export HOME="$(mktemp -d)"
|
2021-05-22 12:17:05 +02:00
|
|
|
git config --global user.name John
|
|
|
|
git config --global user.email john@localhost
|
2021-11-05 23:41:28 +01:00
|
|
|
git config --global init.defaultBranch master
|
|
|
|
git config --global pull.rebase false
|
2021-05-22 12:17:05 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-05 23:41:28 +01:00
|
|
|
description = "Manage the aggregation of git branches from different remotes to build a consolidated one";
|
2021-05-22 12:17:05 +02:00
|
|
|
homepage = "https://github.com/acsone/git-aggregator";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ lourkeur ];
|
|
|
|
mainProgram = "gitaggregate";
|
|
|
|
};
|
|
|
|
}
|