diff --git a/pkgs/development/python-modules/simanneal/default.nix b/pkgs/development/python-modules/simanneal/default.nix index ff553295916a..2cdbf44c10d5 100644 --- a/pkgs/development/python-modules/simanneal/default.nix +++ b/pkgs/development/python-modules/simanneal/default.nix @@ -3,7 +3,7 @@ fetchFromGitHub, buildPythonPackage, setuptools, - pytest, + pytestCheckHook, }: buildPythonPackage (finalAttrs: { @@ -22,8 +22,7 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - nativeCheckInputs = [ pytest ]; - checkPhase = "pytest tests"; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "simanneal" ];