From 1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903 Mon Sep 17 00:00:00 2001 From: nicoo Date: Sat, 9 Dec 2023 14:04:13 +0000 Subject: [PATCH] memtree: Replace custom `checkPhase` with `pytestCheckHook` --- pkgs/by-name/me/memtree/package.nix | 8 ++------ 1 file 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 {