Skip to content

Commit 9efe0c4

Browse files
committed
python3Packages.craft-cli: use writableTmpDirAsHomeHook for checks
1 parent b64bbcf commit 9efe0c4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkgs/development/python-modules/craft-cli/default.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
pytest-check,
1212
pytest-mock,
1313
pytestCheckHook,
14+
writableTmpDirAsHomeHook,
1415
}:
1516

1617
buildPythonPackage rec {
@@ -46,13 +47,9 @@ buildPythonPackage rec {
4647
pytest-check
4748
pytest-mock
4849
pytestCheckHook
50+
writableTmpDirAsHomeHook
4951
];
5052

51-
preCheck = ''
52-
mkdir -p check-phase
53-
export HOME="$(pwd)/check-phase"
54-
'';
55-
5653
pytestFlagsArray = [ "tests/unit" ];
5754

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

0 commit comments

Comments
 (0)