depot/third_party/nixpkgs/pkgs/development/python-modules/diff-cover/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
chardet,
fetchPypi,
jinja2,
jinja2-pluralize,
pluggy,
poetry-core,
pycodestyle,
pyflakes,
pygments,
pylint,
pytest-datadir,
pytest-mock,
pytestCheckHook,
pythonOlder,
tomli,
}:
buildPythonPackage rec {
pname = "diff-cover";
version = "9.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "diff_cover";
inherit version;
hash = "sha256-HchR0/PzIMBI0DYY5MDZhh+koVBrQl0tCaVksgyVZ0o=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
chardet
jinja2
jinja2-pluralize
pluggy
pygments
tomli
];
nativeCheckInputs = [
pycodestyle
pyflakes
pylint
pytest-datadir
pytest-mock
pytestCheckHook
];
disabledTests = [
# Tests check for flake8
"file_does_not_exist"
# Comparing console output doesn't work reliable
"console"
];
pythonImportsCheck = [ "diff_cover" ];
meta = with lib; {
description = "Automatically find diff lines that need test coverage";
homepage = "https://github.com/Bachmann1234/diff-cover";
changelog = "https://github.com/Bachmann1234/diff_cover/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dzabraev ];
};
}