diff --git a/pkgs/development/python-modules/python-utils/default.nix b/pkgs/development/python-modules/python-utils/default.nix index f94ec8d751c..60160d270b7 100644 --- a/pkgs/development/python-modules/python-utils/default.nix +++ b/pkgs/development/python-modules/python-utils/default.nix @@ -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 ];