python311Packages.smbus2: migrate to pytestCheckHook

This commit is contained in:
Fabian Affolter 2023-08-26 10:13:52 +02:00
parent 1498e72925
commit 6fb63efc61

View file

@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pytestCheckHook
, pythonOlder
}:
@ -20,15 +20,9 @@ buildPythonPackage rec {
};
nativeCheckInputs = [
nose
pytestCheckHook
];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
pythonImportsCheck = [
"smbus2"
];