diff options
author | George Macon <george@themacons.net> | 2024-06-01 13:14:28 -0400 |
---|---|---|
committer | George Macon <george@themacons.net> | 2024-06-01 14:20:29 -0400 |
commit | f6660806b85f3c3e03d170f0022aa004ab68092d (patch) | |
tree | cce854832db3d5db1981be329d3b3f4afd187acd /pkgs/tools/backup | |
parent | 60c3b59fdb60e04b7a59e3673edc98b8075dde28 (diff) |
tarsnapper: use pynose to run tests
The nosetests support was removed from pytest in version 8, so revert to using the nosetests entry point to run tests. While I'm in here already, update to use pynose to avoid future failures when nose is removed from nixpkgs (see #311054).
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/tarsnapper/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/backup/tarsnapper/default.nix b/pkgs/tools/backup/tarsnapper/default.nix index b4d731984f71f..843e61ecea573 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; { |