about summary refs log tree commit diff
path: root/pkgs/applications/misc/mu-repo/default.nix
blob: ff07856e0e8d8d241ec308335ea6046fb5ce68c8 (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
{ lib, fetchFromGitHub, buildPythonApplication, pytestCheckHook, git, testers, mu-repo }:

buildPythonApplication rec {
  pname = "mu-repo";
  version = "1.8.2";

  src = fetchFromGitHub {
    owner = "fabioz";
    repo = "mu-repo";
    rev = "mu_repo_${lib.replaceStrings [ "." ] [ "_" ] version}";
    hash = "sha256-COc7hbu72eA+ikZQkz6zXtFyaa/AKhoF+Zvsr6ZVOuY=";
  };

  propagatedBuildInputs = [ git ];

  nativeCheckInputs = [ pytestCheckHook git ];

  passthru.tests.version = testers.testVersion {
    package = mu-repo;
  };

  meta = with lib; {
    description = "Tool to help in dealing with multiple git repositories";
    homepage = "http://fabioz.github.io/mu-repo/";
    license = licenses.gpl3;
    platforms = platforms.unix;
    maintainers = with maintainers; [ sikmir ];
    mainProgram = "mu";
  };
}