depot/third_party/nixpkgs/pkgs/development/python-modules/diff_cover/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

46 lines
1,000 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, inflect
, jinja2
, jinja2_pluralize
, pygments
, six
# test dependencies
, coverage
, flake8
, mock
, nose
, pycodestyle
, pyflakes
, pylint
, pytest
}:
buildPythonPackage rec {
pname = "diff_cover";
version = "3.0.1";
preCheck = ''
export LC_ALL=en_US.UTF-8;
'';
src = fetchPypi {
inherit pname version;
sha256 = "13768c8bc755dd8e1184ce79b95bbc8115ea566282f4b06efbeca72a4d00427b";
};
propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];
checkInputs = [ mock coverage pytest nose pylint pyflakes pycodestyle ];
# ignore tests which try to write files
checkPhase = ''
pytest -k 'not added_file_pylint_console and not file_does_not_exist'
'';
meta = with stdenv.lib; {
description = "Automatically find diff lines that need test coverage";
homepage = "https://github.com/Bachmann1234/diff-cover";
license = licenses.asl20;
maintainers = with maintainers; [ dzabraev ];
};
}