Unverified Commit e04c75db authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

onionshare: use writableTmpDirAsHomeHook (#397348)

parents e0302e79 fef34071
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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