From 6a8dc6feb50bc208de2696c45702bbbbb3545af8 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 7 Aug 2024 00:27:47 +0200 Subject: [PATCH] python311Packages.typesentry: migrate to pytestCheckHook --- .../development/python-modules/typesentry/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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";