depot/third_party/nixpkgs/pkgs/development/python-modules/diff-cover/default.nix
Default email a71eb02b76 Project import generated by Copybara.
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
2022-11-27 10:42:12 +01:00

68 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 = "7.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "diff_cover";
inherit version;
hash = "sha256-7RqhNSIUD3ofYoB7x1UoGdJDQ+6TmLenTpShjHji6GQ=";
};
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"
# 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 ];
};
}