1{ lib
2, buildPythonPackage
3, chardet
4, fetchPypi
5, inflect
6, jinja2
7, jinja2_pluralize
8, pycodestyle
9, pyflakes
10, pygments
11, pylint
12, pytest-mock
13, pytestCheckHook
14, pythonOlder
15}:
16
17buildPythonPackage rec {
18 pname = "diff-cover";
19 version = "5.4.0";
20 disabled = pythonOlder "3.6";
21
22 src = fetchPypi {
23 pname = "diff_cover";
24 inherit version;
25 sha256 = "sha256-4iQ9/QcXh/lW8HE6wFZWc6Y57xhAEWu2TQnIUZJNAMs=";
26 };
27
28 propagatedBuildInputs = [
29 chardet
30 inflect
31 jinja2
32 jinja2_pluralize
33 pygments
34 ];
35
36 checkInputs = [
37 pycodestyle
38 pyflakes
39 pylint
40 pytest-mock
41 pytestCheckHook
42 ];
43
44 disabledTests = [
45 "added_file_pylint_console"
46 "file_does_not_exist"
47 ];
48
49 pythonImportsCheck = [ "diff_cover" ];
50
51 meta = with lib; {
52 description = "Automatically find diff lines that need test coverage";
53 homepage = "https://github.com/Bachmann1234/diff-cover";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ dzabraev ];
56 };
57}