about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/git-aggregator/default.nix
blob: 9b2465366f672b35a9ff54fa87297c68ab09a225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib, git, python3Packages }:

python3Packages.buildPythonApplication rec {
  pname = "git-aggregator";
  version = "2.1.0";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "sha256-79xNPzYP1j71sU5wZM5e2xTqQExqQEdxXPxbk4T/Scw=";
  };

  nativeBuildInputs = with python3Packages; [
    setuptools-scm
  ];

  propagatedBuildInputs = with python3Packages; [
    argcomplete
    colorama
    git
    kaptan
    requests
  ];

  checkInputs = [
    git
  ];

  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 = with lib; {
    description = "Manage the aggregation of git branches from different remotes to build a consolidated one";
    homepage = "https://github.com/acsone/git-aggregator";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ lourkeur ];
    mainProgram = "gitaggregate";
  };
}