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
@@ -1,5 +1,5 @@
{ lib, fetchFromGitHub, buildPythonPackage
, python, isPy3k }:
, python, isPy3k, unittestCheckHook }:
buildPythonPackage rec {
pname = "emailthreads";
@@ -14,11 +14,9 @@ buildPythonPackage rec {
sha256 = "sha256-7BhYS1DQCW9QpG31asPCq5qPyJy+WW2onZpvEHhwQCs=";
};
PKGVER = version;
checkInputs = [ unittestCheckHook ];
checkPhase = ''
${python.interpreter} -m unittest discover test
'';
PKGVER = version;
meta = with lib; {
homepage = "https://github.com/emersion/python-emailthreads";