about summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorasymmetric <101816+asymmetric@users.noreply.github.com>2024-06-03 14:06:40 +0200
committerGitHub <noreply@github.com>2024-06-03 14:06:40 +0200
commit9e1b9ab5052d101b007fb969c8f0aa9e31928844 (patch)
tree6295d64bb9421dff230203d4da1634992d78dc46 /pkgs/tools/backup
parentc429fa2ffa21229eeadbe37c11a47aff35f53ce0 (diff)
parentf6660806b85f3c3e03d170f0022aa004ab68092d (diff)
Merge pull request #316465 from gmacon/tarsnapper-pytest-8
tarsnapper: use nose to run tests
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/tarsnapper/default.nix9
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; {