From 9efe0c425a0721e54d62fd970c9977cc2213dbfc Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 9 Apr 2025 13:08:35 +0100 Subject: [PATCH] python3Packages.craft-cli: use `writableTmpDirAsHomeHook` for checks --- pkgs/development/python-modules/craft-cli/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 { };