summary refs log tree commit diff
path: root/pkgs/development/python-modules/diff_cover/default.nix
blob: b8286e7d6b1b046d79ed44d914738ba7a9468b66 (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
{ stdenv, buildPythonPackage, fetchPypi, jinja2, jinja2_pluralize, pygments,
  six, inflect, mock, nose, coverage, pycodestyle, flake8, pyflakes, git,
  pylint, pydocstyle, fetchpatch }:

buildPythonPackage rec {
  pname = "diff_cover";
  version = "1.0.2";

  preCheck = ''
    export LC_ALL=en_US.UTF-8;
  '';

  src = fetchPypi {
    inherit pname version;
    sha256 = "1wbp0kfv2mjxwnq2jlqmwvb71fywwc4x4azxi7ll5dll6nhjyd61";
  };

  patches = [
    (fetchpatch {
      name = "tests-fix.patch";
      url = "https://github.com/Bachmann1234/diff-cover/commit/85c30959c8ed2aa3848f400095a2418f15bb7777.patch";
      sha256 = "0xni4syrxww9kdv8495f416vqgfdys4w2hgf5rdi35hy3ybfslh0";
    })
  ];

  propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];

  checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git ];

  meta = with stdenv.lib; {
    description = "Automatically find diff lines that need test coverage";
    homepage = https://github.com/Bachmann1234/diff-cover;
    license = licenses.asl20;
    maintainers = with maintainers; [ dzabraev ];
  };
}