Skip to content

Commit 54bba70

Browse files
committed
patroni: use writableTmpDirAsHomeHook
1 parent a594520 commit 54bba70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkgs/by-name/pa/patroni/package.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
versionCheckHook,
66
nixosTests,
77
nix-update-script,
8+
writableTmpDirAsHomeHook,
89
}:
910

1011
python3Packages.buildPythonApplication rec {
@@ -46,12 +47,10 @@ python3Packages.buildPythonApplication rec {
4647
pytest-cov
4748
requests
4849
versionCheckHook
50+
writableTmpDirAsHomeHook
4951
];
5052
versionCheckProgramArg = "--version";
5153

52-
# Fix tests by preventing them from writing to /homeless-shelter.
53-
preCheck = "export HOME=$(mktemp -d)";
54-
5554
__darwinAllowLocalNetworking = true;
5655

5756
passthru = {

0 commit comments

Comments
 (0)