about summary refs log tree commit diff
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-12-09 14:04:13 +0000
committernicoo <nicoo@mur.at>2023-12-09 14:15:47 +0000
commit1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903 (patch)
tree95bed603bf7635e51d5d6318a268f9cc3fbcc1b6
parent5d66497260d67c0392c0e6c9a09c6fe8ac10d43a (diff)
downloadnixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar.gz
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar.bz2
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar.lz
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar.xz
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.tar.zst
nixlib-1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903.zip
memtree: Replace custom `checkPhase` with `pytestCheckHook`
-rw-r--r--pkgs/by-name/me/memtree/package.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/by-name/me/memtree/package.nix b/pkgs/by-name/me/memtree/package.nix
index 7f7d650c422d..bc82a9063dcf 100644
--- a/pkgs/by-name/me/memtree/package.nix
+++ b/pkgs/by-name/me/memtree/package.nix
@@ -18,6 +18,7 @@ python3Packages.buildPythonApplication {
 
   nativeBuildInputs = with python3Packages; [
     poetry-core
+    pytestCheckHook
   ];
 
   propagatedBuildInputs = with python3Packages; [
@@ -29,12 +30,7 @@ python3Packages.buildPythonApplication {
     pytest
   ];
 
-  checkPhase = ''
-    runHook preCheck
-    python -m pytest -v
-    runHook postCheck
-  '';
-
+  pytestFlagsArray = [ "-v" ];
   pythonImportChecks = [ "memtree" ];
 
   passthru.updateScript = nix-update-script {