aboutsummaryrefslogtreecommitdiff
path: root/pkgs/terminal-velocity/default.nix
blob: 9e79deea5bf60a092d3e3d93c8a759dfaa15cd2f (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
{ python36Packages }:
with python36Packages;
buildPythonApplication rec {
  pname = "terminal-velocity-git";
  version = "0.2.0";
  src = fetchPypi {
    inherit pname version;
    sha256 = "13yrkcmvh5h5fwnai61sbmqkrjyisz08n62pq0ada2lyyqf7g6b9";
  };

  patches = [
    ./sort_found_notes.patch
    ./python3_support.patch
    # FIXME: update this patch when version changes
    ./fix_build.patch
  ];

  propagatedBuildInputs = [
    chardet
    urwid
    (sh.overridePythonAttrs { doCheck = false; })
    pyyaml
  ];
  buildInputs = [
    m2r
    (restructuredtext_lint.overridePythonAttrs { doCheck = false; })
    pygments
  ];

  postInstall = ''
    rm $out/bin/terminal_velocity
    '';
}