diff --git a/pkgs/development/python-modules/libversion/default.nix b/pkgs/development/python-modules/libversion/default.nix index 46d23ae5c1ea..5fb33fa54774 100644 --- a/pkgs/development/python-modules/libversion/default.nix +++ b/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" ];