Unverified Commit d908f957 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

twitch-dl: use writableTmpDirAsHomeHook

parent 35482917
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  installShellFiles,
  scdoc,
  ffmpeg,
  writableTmpDirAsHomeHook,
}:

python3Packages.buildPythonApplication rec {
@@ -38,6 +39,7 @@ python3Packages.buildPythonApplication rec {

  nativeCheckInputs = [
    python3Packages.pytestCheckHook
    writableTmpDirAsHomeHook
  ];

  disabledTestPaths = [
@@ -72,10 +74,6 @@ python3Packages.buildPythonApplication rec {
    installManPage twitch-dl.1
  '';

  preInstallCheck = ''
    export HOME="$(mktemp -d)"
  '';

  meta = with lib; {
    description = "CLI tool for downloading videos from Twitch";
    homepage = "https://github.com/ihabunek/twitch-dl";