From 539d6cf79ab1e94677bdc4d2953f0affdd739874 Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Fri, 11 Dec 2020 09:22:46 -0500 Subject: [PATCH] pythonPackages.python-utils: convert to pytestCheckHook --- pkgs/development/python-modules/python-utils/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 ];