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

@@ -4,7 +4,7 @@
, isPyPy
, snappy
, cffi
, python
, unittestCheckHook
}:
buildPythonPackage rec {
@@ -21,11 +21,7 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optional isPyPy cffi;
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
checkInputs = [ unittestCheckHook ];
meta = with lib; {
description = "Python library for the snappy compression library from Google";