diff --git a/pkgs/tools/backup/tarsnapper/default.nix b/pkgs/tools/backup/tarsnapper/default.nix index b4d731984f71..843e61ecea57 100644 --- a/pkgs/tools/backup/tarsnapper/default.nix +++ b/pkgs/tools/backup/tarsnapper/default.nix @@ -37,8 +37,7 @@ python3Packages.buildPythonApplication rec { ]; nativeCheckInputs = with python3Packages; [ - pytestCheckHook - nose + pynose ]; # Remove standard module argparse from requirements @@ -46,6 +45,12 @@ python3Packages.buildPythonApplication rec { makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ]; + checkPhase = '' + runHook preCheck + nosetests tests + runHook postCheck + ''; + pythonImportsCheck = [ "tarsnapper" ]; meta = with lib; {