diff --git a/pkgs/by-name/sn/snapcraft/package.nix b/pkgs/by-name/sn/snapcraft/package.nix index c7927f854cdf..02c86328e71b 100644 --- a/pkgs/by-name/sn/snapcraft/package.nix +++ b/pkgs/by-name/sn/snapcraft/package.nix @@ -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 = [