pythonPackages.oncalendar: use pytestCheckHook

This commit is contained in:
phaer 2024-04-06 15:23:11 +00:00
parent 4dc7775617
commit 08746b5cf7
1 changed files with 2 additions and 4 deletions

View File

@ -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" ];