mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
47 lines
998 B
Nix
47 lines
998 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 = "2.4.0";
|
|
|
|
preCheck = ''
|
|
export LC_ALL=en_US.UTF-8;
|
|
'';
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a78babbec1c3088a6c3a5b62cddccaeac4717236ea4f5d28b6af00f2d9b2e341";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|