Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / diff-cover / default.nix
blobbab6cd3f6c7bb11b7da91dfcaaf9b46e057e7035
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
19 buildPythonPackage rec {
20   pname = "diff-cover";
21   version = "7.7.0";
22   format = "setuptools";
24   disabled = pythonOlder "3.7";
26   src = fetchPypi {
27     pname = "diff_cover";
28     inherit version;
29     hash = "sha256-YGFM9+ciz3+xveSXr6wLUUKU4eJlNESWItrE2ilhI/s=";
30   };
32   propagatedBuildInputs = [
33     chardet
34     jinja2
35     jinja2-pluralize
36     pluggy
37     pygments
38     tomli
39   ];
41   nativeCheckInputs = [
42     pycodestyle
43     pyflakes
44     pylint
45     pytest-datadir
46     pytest-mock
47     pytestCheckHook
48   ];
50   disabledTests = [
51     # Tests check for flake8
52     "file_does_not_exist"
53     # Comparing console output doesn't work reliable
54     "console"
55   ];
57   pythonImportsCheck = [
58     "diff_cover"
59   ];
61   meta = with lib; {
62     description = "Automatically find diff lines that need test coverage";
63     homepage = "https://github.com/Bachmann1234/diff-cover";
64     changelog = "https://github.com/Bachmann1234/diff_cover/releases/tag/v${version}";
65     license = licenses.asl20;
66     maintainers = with maintainers; [ dzabraev ];
67   };