cron-descriptor: use unittestCheckHook

This commit is contained in:
phaer 2024-07-31 13:53:52 +02:00
parent 5593ad598a
commit 7a2890b5f5

View File

@ -1,8 +1,8 @@
{
lib,
python,
fetchFromGitHub,
buildPythonPackage,
unittestCheckHook,
mock,
setuptools,
}:
@ -25,11 +25,11 @@ buildPythonPackage rec {
'';
build-system = [ setuptools ];
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} setup.py test
'';
nativeCheckInputs = [
mock
unittestCheckHook
];
pythonImportsCheck = [ "cron_descriptor" ];