python3Packages.craft-cli: use writableTmpDirAsHomeHook for checks

This commit is contained in:
Jon Seager
2025-04-09 13:08:35 +01:00
parent b64bbcf19d
commit 9efe0c425a
@@ -11,6 +11,7 @@
pytest-check,
pytest-mock,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
@@ -46,13 +47,9 @@ buildPythonPackage rec {
pytest-check
pytest-mock
pytestCheckHook
writableTmpDirAsHomeHook
];
preCheck = ''
mkdir -p check-phase
export HOME="$(pwd)/check-phase"
'';
pytestFlagsArray = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };