1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/diff_cover/default.nix

47 lines
986 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, inflect
, jinja2
, jinja2_pluralize
, pygments
, six
# test dependencies
, coverage
, flake8
, mock
, nose
, pycodestyle
, pyflakes
, pylint
, pytest
}:
2018-01-19 16:23:50 +00:00
buildPythonPackage rec {
pname = "diff_cover";
version = "2.6.0";
2018-01-19 16:23:50 +00:00
preCheck = ''
export LC_ALL=en_US.UTF-8;
'';
src = fetchPypi {
inherit pname version;
sha256 = "1bsxc9x3yx5dy2r3b3lzi97wz0ma3ncd14jr27n6lbqvl20w92mm";
2018-01-19 16:23:50 +00:00
};
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'
'';
2018-01-19 16:23:50 +00:00
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 ];
};
}