treewide: migrate to pythonPackages.unittestCheckHook

This commit is contained in:
Winter
2022-08-13 14:09:43 -04:00
parent e8fbb38a51
commit 19adc3341c
82 changed files with 278 additions and 417 deletions
@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, python
, unittestCheckHook
}:
if pythonAtLeast "3.4" then null else buildPythonPackage rec {
@@ -14,9 +14,7 @@ if pythonAtLeast "3.4" then null else buildPythonPackage rec {
sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
checkInputs = [ unittestCheckHook ];
meta = with lib; {
homepage = "https://pypi.python.org/pypi/enum34";