hatch: use writableTmpDirAsHomeHook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user