1{ stdenv, buildPythonPackage, fetchPypi, jinja2, jinja2_pluralize, pygments, 2 six, inflect, mock, nose, coverage, pycodestyle, flake8, pyflakes, git, 3 pylint, pydocstyle, fetchpatch }: 4 5buildPythonPackage rec { 6 pname = "diff_cover"; 7 version = "1.0.2"; 8 9 preCheck = '' 10 export LC_ALL=en_US.UTF-8; 11 ''; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1wbp0kfv2mjxwnq2jlqmwvb71fywwc4x4azxi7ll5dll6nhjyd61"; 16 }; 17 18 patches = [ 19 (fetchpatch { 20 name = "tests-fix.patch"; 21 url = "https://github.com/Bachmann1234/diff-cover/commit/85c30959c8ed2aa3848f400095a2418f15bb7777.patch"; 22 sha256 = "0xni4syrxww9kdv8495f416vqgfdys4w2hgf5rdi35hy3ybfslh0"; 23 }) 24 ]; 25 26 propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ]; 27 28 checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git ]; 29 30 meta = with stdenv.lib; { 31 description = "Automatically find diff lines that need test coverage"; 32 homepage = https://github.com/Bachmann1234/diff-cover; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ dzabraev ]; 35 }; 36}