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-09-22 12:36:57 +00:00
|
|
|
version = "7.0.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "diff_cover";
|
|
|
|
inherit version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-aSWDVdr4J2BXqS5CzsUllK2M/n3VBdbw5W/kQLxEGNA=";
|
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-09-09 14:08:57 +00:00
|
|
|
# Comparing console output doesn't work reliable
|
|
|
|
"console"
|
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 ];
|
|
|
|
};
|
|
|
|
}
|