treewide: migrate to pythonPackages.unittestCheckHook

This commit is contained in:
Winter
2022-08-06 12:32:04 -04:00
parent e8fbb38a51
commit 19adc3341c
82 changed files with 278 additions and 417 deletions

View File

@@ -3,6 +3,7 @@
, fetchPypi
, python
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
@@ -17,11 +18,7 @@ buildPythonPackage rec {
hash = "sha256-qx4r/h0B2Wjht+jZAjvFHvNQm7ohe7cwzuOCfh7oKGk=";
};
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
checkInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"contextlib2"