mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
68 lines
1.1 KiB
Nix
68 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.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "diff_cover";
|
|
inherit version;
|
|
hash = "sha256-jDuxOBLpZnvIP4x2BkAlEenC/nnWeG8SlSLnlpPuCWs=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dzabraev ];
|
|
};
|
|
}
|