onionshare: use writableTmpDirAsHomeHook

This commit is contained in:
Daniel Nagy
2025-04-09 13:45:00 +02:00
parent 70f67d28f7
commit fef3407120
+2 -5
View File
@@ -15,6 +15,7 @@
versionCheckHook,
gitUpdater,
onionshare-gui,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
pname = "onionshare-cli";
@@ -95,16 +96,12 @@ python3Packages.buildPythonApplication rec {
nativeCheckInputs =
[
versionCheckHook
writableTmpDirAsHomeHook
]
++ (with python3Packages; [
pytestCheckHook
]);
preCheck = ''
# Tests use the home directory
export HOME="$(mktemp -d)"
'';
disabledTests =
lib.optionals stdenv.hostPlatform.isLinux [
"test_get_tor_paths_linux" # expects /usr instead of /nix/store