3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.python-utils: convert to pytestCheckHook

This commit is contained in:
Drew Risinger 2020-12-11 09:22:46 -05:00
parent 86be4c0005
commit 539d6cf79a

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, sphinx, six }:
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytestrunner, pytestcov, pytest-flakes, sphinx, six }:
buildPythonPackage rec {
pname = "python-utils";
@ -15,11 +15,7 @@ buildPythonPackage rec {
substituteInPlace pytest.ini --replace "--pep8" ""
'';
checkInputs = [ pytest pytestrunner pytestcov pytest-flakes sphinx ];
checkPhase = ''
py.test tests
'';
checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ];
propagatedBuildInputs = [ six ];