python310Packages.libversion: use pytestCheckHook

main
Robert Schütz 2 years ago committed by Jonathan Ringer
parent 4e3a656282
commit e59b2e676b
  1. 10
      pkgs/development/python-modules/libversion/default.nix

@ -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"
];

Loading…
Cancel
Save