bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, chardet
|
|
, fetchPypi
|
|
, jinja2
|
|
, jinja2_pluralize
|
|
, pluggy
|
|
, pycodestyle
|
|
, pyflakes
|
|
, pygments
|
|
, pylint
|
|
, pytest-datadir
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, tomli
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "diff-cover";
|
|
version = "6.4.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "diff_cover";
|
|
inherit version;
|
|
sha256 = "sha256-qUuMHBfcJEmJF/con+ODtFfYrU7yo//KgKiSpByLWKY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
chardet
|
|
jinja2
|
|
jinja2_pluralize
|
|
pluggy
|
|
pygments
|
|
tomli
|
|
];
|
|
|
|
checkInputs = [
|
|
pycodestyle
|
|
pyflakes
|
|
pylint
|
|
pytest-datadir
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests check for flake8
|
|
"file_does_not_exist"
|
|
# AssertionError: assert '.c { color:...
|
|
"test_style_defs"
|
|
# uses pytest.approx in a boolean context, which is unsupported since pytest7
|
|
"test_percent_covered"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"diff_cover"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|