From 08746b5cf79cbdd9ca68fff3ed8bdc72f29b7027 Mon Sep 17 00:00:00 2001 From: phaer Date: Sat, 6 Apr 2024 15:23:11 +0000 Subject: [PATCH] pythonPackages.oncalendar: use pytestCheckHook --- pkgs/development/python-modules/oncalendar/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/oncalendar/default.nix b/pkgs/development/python-modules/oncalendar/default.nix index 976e663857dd..5b4920a6cef7 100644 --- a/pkgs/development/python-modules/oncalendar/default.nix +++ b/pkgs/development/python-modules/oncalendar/default.nix @@ -1,7 +1,7 @@ { lib -, python , buildPythonPackage , fetchFromGitHub +, pytestCheckHook }: buildPythonPackage rec { @@ -15,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-eQYxOnL4/TJbY/nijcPl8TqK2MrwcdISKGfZQoI7828="; }; - checkPhase = '' - ${python.interpreter} setup.py test - ''; + nativeBuildInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "oncalendar" ];