onionshare: use writableTmpDirAsHomeHook (#397348)

This commit is contained in:
Arne Keller 2025-04-10 11:40:46 +02:00 committed by GitHub
commit e04c75db33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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