treewide: migrate to pythonPackages.unittestCheckHook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user