nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 pyyaml,
6 setuptools,
7 installShellFiles,
8}:
9
10buildPythonApplication rec {
11 version = "0.16.6.1";
12 format = "setuptools";
13 pname = "gita";
14
15 src = fetchFromGitHub {
16 sha256 = "sha256-kPyk13yd4rc63Nh73opuHsCTj4DgYAVfro8To96tteA=";
17 rev = "v${version}";
18 repo = "gita";
19 owner = "nosarthur";
20 };
21
22 propagatedBuildInputs = [
23 pyyaml
24 setuptools
25 ];
26
27 nativeBuildInputs = [ installShellFiles ];
28
29 # 3 of the tests are failing
30 doCheck = false;
31
32 postInstall = ''
33 installShellCompletion --bash --name gita ${src}/.gita-completion.bash
34 installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
35 '';
36
37 meta = with lib; {
38 description = "Command-line tool to manage multiple git repos";
39 homepage = "https://github.com/nosarthur/gita";
40 license = licenses.mit;
41 maintainers = with maintainers; [ seqizz ];
42 mainProgram = "gita";
43 };
44}