2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
chardet,
|
|
|
|
fetchPypi,
|
|
|
|
jinja2,
|
|
|
|
jinja2-pluralize,
|
|
|
|
pluggy,
|
|
|
|
poetry-core,
|
|
|
|
pycodestyle,
|
|
|
|
pyflakes,
|
|
|
|
pygments,
|
|
|
|
pylint,
|
|
|
|
pytest-datadir,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
tomli,
|
2021-07-04 02:40:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diff-cover";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "9.0.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
format = "pyproject";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
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;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-HchR0/PzIMBI0DYY5MDZhh+koVBrQl0tCaVksgyVZ0o=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
jinja2
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/Bachmann1234/diff_cover/releases/tag/v${version}";
|
2021-07-04 02:40:35 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dzabraev ];
|
|
|
|
};
|
|
|
|
}
|