81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
67 lines
1.1 KiB
Nix
67 lines
1.1 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.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "diff_cover";
|
|
inherit version;
|
|
sha256 = "b1d782c1ce53ad4b2c5545f8b7aa799eb61a0b12a62b376a18e2313c6f2d77f1";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|