1{ lib, git, python3Packages }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "git-aggregator";
5 version = "2.1.0";
6
7 src = python3Packages.fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-79xNPzYP1j71sU5wZM5e2xTqQExqQEdxXPxbk4T/Scw=";
10 };
11
12 nativeBuildInputs = with python3Packages; [
13 setuptools-scm
14 ];
15
16 propagatedBuildInputs = with python3Packages; [
17 argcomplete
18 colorama
19 git
20 kaptan
21 requests
22 ];
23
24 checkInputs = [
25 git
26 ];
27
28 preCheck = ''
29 export HOME="$(mktemp -d)"
30 git config --global user.name John
31 git config --global user.email john@localhost
32 git config --global init.defaultBranch master
33 git config --global pull.rebase false
34 '';
35
36 meta = with lib; {
37 description = "Manage the aggregation of git branches from different remotes to build a consolidated one";
38 homepage = "https://github.com/acsone/git-aggregator";
39 license = licenses.agpl3Plus;
40 maintainers = with maintainers; [ lourkeur ];
41 mainProgram = "gitaggregate";
42 };
43}