python310Packages.libversion: use pytestCheckHook

This commit is contained in:
Robert Schütz
2022-06-13 05:09:00 +00:00
committed by Jonathan Ringer
parent 4e3a656282
commit e59b2e676b

View File

@@ -3,6 +3,7 @@
, fetchFromGitHub
, libversion
, pkg-config
, pytestCheckHook
, pythonOlder
}:
@@ -33,6 +34,15 @@ buildPythonPackage rec {
libversion
];
checkInputs = [
pytestCheckHook
];
preCheck = ''
# import from $out
rm -r libversion
'';
pythonImportsCheck = [
"libversion"
];