1{ lib
2, buildPythonPackage
3, chardet
4, fetchPypi
5, jinja2
6, jinja2_pluralize
7, pluggy
8, pycodestyle
9, pyflakes
10, pygments
11, pylint
12, pytest-datadir
13, pytest-mock
14, pytestCheckHook
15, pythonOlder
16, tomli
17}:
18
19buildPythonPackage rec {
20 pname = "diff-cover";
21 version = "7.0.2";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 pname = "diff_cover";
28 inherit version;
29 hash = "sha256-OENUR9rTKrt+AdHDlCU5AhpSI4ijtYXVg6biB8wTNJc=";
30 };
31
32 propagatedBuildInputs = [
33 chardet
34 jinja2
35 jinja2_pluralize
36 pluggy
37 pygments
38 tomli
39 ];
40
41 checkInputs = [
42 pycodestyle
43 pyflakes
44 pylint
45 pytest-datadir
46 pytest-mock
47 pytestCheckHook
48 ];
49
50 disabledTests = [
51 # Tests check for flake8
52 "file_does_not_exist"
53 # Comparing console output doesn't work reliable
54 "console"
55 ];
56
57 pythonImportsCheck = [
58 "diff_cover"
59 ];
60
61 meta = with lib; {
62 description = "Automatically find diff lines that need test coverage";
63 homepage = "https://github.com/Bachmann1234/diff-cover";
64 license = licenses.asl20;
65 maintainers = with maintainers; [ dzabraev ];
66 };
67}