memtree: Replace custom checkPhase with pytestCheckHook

This commit is contained in:
nicoo 2023-12-09 14:04:13 +00:00
parent 5d66497260
commit 1b46ab02fd

View File

@ -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 {