diff --git a/pkgs/development/python-modules/craft-cli/default.nix b/pkgs/development/python-modules/craft-cli/default.nix index 32cce3bd82f2..99c6d6bfa0de 100644 --- a/pkgs/development/python-modules/craft-cli/default.nix +++ b/pkgs/development/python-modules/craft-cli/default.nix @@ -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 { };