2021-07-04 02:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, chardet
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
|
|
|
, jinja2_pluralize
|
2022-02-10 20:34:41 +00:00
|
|
|
, pluggy
|
2021-07-04 02:40:35 +00:00
|
|
|
, pycodestyle
|
|
|
|
, pyflakes
|
|
|
|
, pygments
|
|
|
|
, pylint
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytest-datadir
|
2021-07-04 02:40:35 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-02-10 20:34:41 +00:00
|
|
|
, tomli
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diff-cover";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "6.5.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "diff_cover";
|
|
|
|
inherit version;
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-jDuxOBLpZnvIP4x2BkAlEenC/nnWeG8SlSLnlpPuCWs=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
jinja2
|
|
|
|
jinja2_pluralize
|
2022-02-10 20:34:41 +00:00
|
|
|
pluggy
|
2021-07-04 02:40:35 +00:00
|
|
|
pygments
|
2022-02-10 20:34:41 +00:00
|
|
|
tomli
|
2021-07-04 02:40:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pycodestyle
|
|
|
|
pyflakes
|
|
|
|
pylint
|
2022-02-10 20:34:41 +00:00
|
|
|
pytest-datadir
|
2021-07-04 02:40:35 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-02-10 20:34:41 +00:00
|
|
|
# Tests check for flake8
|
2021-07-04 02:40:35 +00:00
|
|
|
"file_does_not_exist"
|
2022-02-10 20:34:41 +00:00
|
|
|
# AssertionError: assert '.c { color:...
|
|
|
|
"test_style_defs"
|
2022-04-15 01:41:22 +00:00
|
|
|
# uses pytest.approx in a boolean context, which is unsupported since pytest7
|
|
|
|
"test_percent_covered"
|
2022-06-16 17:23:12 +00:00
|
|
|
# assert '<!DOCTYPE ht...ody>\n</html>' == '<!DOCTYPE ht...ody>\n</html>'
|
|
|
|
"test_html_with_external_css"
|
|
|
|
# assert '<table class...</tr></table>' == '<div class=".../table></div>'
|
|
|
|
"test_format"
|
|
|
|
"test_format_with_invalid_violation_lines"
|
|
|
|
"test_no_filename_ext"
|
|
|
|
"test_unicode"
|
|
|
|
"test_load_snippets_html"
|
|
|
|
"test_load_utf8_snippets"
|
|
|
|
"test_load_declared_arabic"
|
2021-07-04 02:40:35 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"diff_cover"
|
|
|
|
];
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Automatically find diff lines that need test coverage";
|
|
|
|
homepage = "https://github.com/Bachmann1234/diff-cover";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dzabraev ];
|
|
|
|
};
|
|
|
|
}
|