blob: 41fe453647de67a21694010b569df8542a1bd784 (
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
44
|
{ lib
, buildPythonApplication
, fetchFromGitHub
, git
, pytest
, pyyaml
, setuptools
, installShellFiles
}:
buildPythonApplication rec {
version = "0.16.6.1";
pname = "gita";
src = fetchFromGitHub {
sha256 = "sha256-kPyk13yd4rc63Nh73opuHsCTj4DgYAVfro8To96tteA=";
rev = "v${version}";
repo = "gita";
owner = "nosarthur";
};
propagatedBuildInputs = [
pyyaml
setuptools
];
nativeBuildInputs = [ installShellFiles ];
# 3 of the tests are failing
doCheck = false;
postInstall = ''
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
'';
meta = with lib; {
description = "Command-line tool to manage multiple git repos";
homepage = "https://github.com/nosarthur/gita";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
mainProgram = "gita";
};
}
|