pythonPackages.diff_cover: 1.0.2 -> 2.3.0
This commit is contained in:
parent
debf4f9e13
commit
7045cc8336
1 changed files with 24 additions and 14 deletions
|
@ -1,10 +1,23 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, jinja2, jinja2_pluralize, pygments,
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
six, inflect, mock, nose, coverage, pycodestyle, flake8, pyflakes, git,
|
, inflect
|
||||||
pylint, pydocstyle, fetchpatch, glibcLocales }:
|
, jinja2
|
||||||
|
, jinja2_pluralize
|
||||||
|
, pygments
|
||||||
|
, six
|
||||||
|
# test dependencies
|
||||||
|
, coverage
|
||||||
|
, flake8
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, pycodestyle
|
||||||
|
, pyflakes
|
||||||
|
, pylint
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "diff_cover";
|
pname = "diff_cover";
|
||||||
version = "1.0.2";
|
version = "2.3.0";
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LC_ALL=en_US.UTF-8;
|
export LC_ALL=en_US.UTF-8;
|
||||||
|
@ -12,20 +25,17 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1wbp0kfv2mjxwnq2jlqmwvb71fywwc4x4azxi7ll5dll6nhjyd61";
|
sha256 = "1kfv5icvnljh9c97i3fykh0zlba1zjz0rb3p9x06hdwh25n81915";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "tests-fix.patch";
|
|
||||||
url = "https://github.com/Bachmann1234/diff-cover/commit/85c30959c8ed2aa3848f400095a2418f15bb7777.patch";
|
|
||||||
sha256 = "0xni4syrxww9kdv8495f416vqgfdys4w2hgf5rdi35hy3ybfslh0";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];
|
propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];
|
||||||
|
|
||||||
checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git glibcLocales ];
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Automatically find diff lines that need test coverage";
|
description = "Automatically find diff lines that need test coverage";
|
||||||
|
|
Loading…
Reference in a new issue