snapcraft: use writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera
2025-01-30 22:15:10 +01:00
parent 72cf3eb5ac
commit f75606e0cb
+4 -7
View File
@@ -1,6 +1,6 @@
{
fetchFromGitHub,
git,
gitMinimal,
glibc,
lib,
makeWrapper,
@@ -8,6 +8,7 @@
python3Packages,
squashfsTools,
stdenv,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
@@ -138,17 +139,13 @@ python3Packages.buildPythonApplication rec {
pytestCheckHook
responses
setuptools
writableTmpDirAsHomeHook
]
++ [
git
gitMinimal
squashfsTools
];
preCheck = ''
mkdir -p check-phase
export HOME="$(pwd)/check-phase"
'';
pytestFlagsArray = [ "tests/unit" ];
disabledTests = [