hatch: use writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera
2025-01-30 22:15:10 +01:00
parent 57e5e28678
commit 3f1c6f0155
+2 -4
View File
@@ -7,6 +7,7 @@
git,
cargo,
versionCheckHook,
writableTmpDirAsHomeHook,
darwin,
nix-update-script,
}:
@@ -63,6 +64,7 @@ python3Packages.buildPythonApplication rec {
++ [
cargo
versionCheckHook
writableTmpDirAsHomeHook
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.ps
@@ -70,10 +72,6 @@ python3Packages.buildPythonApplication rec {
versionCheckProgramArg = [ "--version" ];
preCheck = ''
export HOME=$(mktemp -d);
'';
pytestFlagsArray =
[
# AssertionError on the version metadata