biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / diff-cover / default.nix
blob9a15282ef93854a1ffc1a43ca0f917c11f8b399a
2   lib,
3   buildPythonPackage,
4   chardet,
5   fetchPypi,
6   jinja2,
7   jinja2-pluralize,
8   pluggy,
9   poetry-core,
10   pycodestyle,
11   pyflakes,
12   pygments,
13   pylint,
14   pytest-datadir,
15   pytest-mock,
16   pytestCheckHook,
17   pythonOlder,
18   tomli,
21 buildPythonPackage rec {
22   pname = "diff-cover";
23   version = "9.2.0";
24   format = "pyproject";
26   disabled = pythonOlder "3.7";
28   src = fetchPypi {
29     pname = "diff_cover";
30     inherit version;
31     hash = "sha256-haCzU+u7Z4+eh+owP3W1Rb0LrKOPVjIZu3LyroYrujY=";
32   };
34   nativeBuildInputs = [ poetry-core ];
36   propagatedBuildInputs = [
37     chardet
38     jinja2
39     jinja2-pluralize
40     pluggy
41     pygments
42     tomli
43   ];
45   nativeCheckInputs = [
46     pycodestyle
47     pyflakes
48     pylint
49     pytest-datadir
50     pytest-mock
51     pytestCheckHook
52   ];
54   disabledTests = [
55     # Tests check for flake8
56     "file_does_not_exist"
57     # Comparing console output doesn't work reliable
58     "console"
59   ];
61   pythonImportsCheck = [ "diff_cover" ];
63   meta = with lib; {
64     description = "Automatically find diff lines that need test coverage";
65     homepage = "https://github.com/Bachmann1234/diff-cover";
66     changelog = "https://github.com/Bachmann1234/diff_cover/releases/tag/v${version}";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ dzabraev ];
69   };