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 { buildPythonPackage rec {
pname = "python-utils"; pname = "python-utils";
@ -15,11 +15,7 @@ buildPythonPackage rec {
substituteInPlace pytest.ini --replace "--pep8" "" substituteInPlace pytest.ini --replace "--pep8" ""
''; '';
checkInputs = [ pytest pytestrunner pytestcov pytest-flakes sphinx ]; checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ];
checkPhase = ''
py.test tests
'';
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];