about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/version-management/nitpick/default.nix
blob: 8fb1095dc581a1a7fef1420685c2c4c2fb336871 (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
{ fetchFromGitHub
, buildPythonPackage
, stdenv
, isPy27
}:

buildPythonPackage rec {
  pname = "nitpick";
  version = "1.1";
  name = "${pname}-${version}";

  format = "other";
  disabled = !isPy27;
  
  src = fetchFromGitHub {
    owner = "travisb-ca";
    repo = pname;
    rev = version;
    sha256 = "11gn6nc6ypwivy20bx1r0rm2giblwx6jv485zk875a9pdbcwbrf6";
  };

  installPhase = ''
    mkdir -p $out/share/src
    install -m 755 -t $out/share/src nitpick.py
  
    mkdir -p $out/bin
    ln -s $out/share/src/nitpick.py $out/bin/nitpick
  '';

  meta = {
    description = "A distributed issue tracker";
    longDescription = ''
      Nitpick is a distributed issue tracker. It helps keep track of which nits you
      should pick. It's intended to be used with source code such that the issues can
      follow the code via whatever VCS or distribution mechanism.
    '';
    homepage = http://travisbrown.ca/projects/nitpick/docs/nitpick.html;
    license = with stdenv.lib.licenses; gpl2;
    maintainers = [];
  };
}