pythonPackages.oncalendar: use pytestCheckHook

This commit is contained in:
phaer 2024-04-06 15:23:11 +00:00
parent 4dc7775617
commit 08746b5cf7

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