Unverified Commit 9efe0c42 authored by Jon Seager's avatar Jon Seager
Browse files

python3Packages.craft-cli: use `writableTmpDirAsHomeHook` for checks

parent b64bbcf1
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  pytest-check,
  pytest-mock,
  pytestCheckHook,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
@@ -46,13 +47,9 @@ buildPythonPackage rec {
    pytest-check
    pytest-mock
    pytestCheckHook
    writableTmpDirAsHomeHook
  ];

  preCheck = ''
    mkdir -p check-phase
    export HOME="$(pwd)/check-phase"
  '';

  pytestFlagsArray = [ "tests/unit" ];

  passthru.updateScript = nix-update-script { };