diff --git a/pkgs/development/python-modules/typesentry/default.nix b/pkgs/development/python-modules/typesentry/default.nix index 66c594720ff7..adb56fd0ad82 100644 --- a/pkgs/development/python-modules/typesentry/default.nix +++ b/pkgs/development/python-modules/typesentry/default.nix @@ -3,8 +3,7 @@ buildPythonPackage, fetchFromGitHub, colorama, - pytest, - pytest-cov, + pytestCheckHook, }: buildPythonPackage { @@ -21,13 +20,7 @@ buildPythonPackage { }; propagatedBuildInputs = [ colorama ]; - nativeCheckInputs = [ - pytest - pytest-cov - ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python 2.7 & 3.5+ runtime type-checker";