mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 00:18:10 +00:00
patroni: use writableTmpDirAsHomeHook
This commit is contained in:
parent
a59452010b
commit
54bba70093
@ -5,6 +5,7 @@
|
||||
versionCheckHook,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
@ -46,12 +47,10 @@ python3Packages.buildPythonApplication rec {
|
||||
pytest-cov
|
||||
requests
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
# Fix tests by preventing them from writing to /homeless-shelter.
|
||||
preCheck = "export HOME=$(mktemp -d)";
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
passthru = {
|
||||
|
Loading…
Reference in New Issue
Block a user