python.pkgs.python-utils: run tests
This commit is contained in:
parent
e5f2cf4af1
commit
d56611b25b
|
@ -9,18 +9,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
|
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# pytest-runner is only actually required in checkPhase
|
rm -r tests/__pycache__
|
||||||
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
|
rm tests/*.pyc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests failing
|
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test
|
py.test tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
Loading…
Reference in New Issue