diff options
author | nicoo <nicoo@mur.at> | 2023-12-09 14:04:13 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-12-09 14:15:47 +0000 |
commit | 1b46ab02fd39ffcf3316b2e9fbc46948e3b6a903 (patch) | |
tree | 95bed603bf7635e51d5d6318a268f9cc3fbcc1b6 | |
parent | 5d66497260d67c0392c0e6c9a09c6fe8ac10d43a (diff) | |
download | nixlib-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.nix | 8 |
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 { |