From 3568e9526dc3f781ac0da7b0f3cbf1db1910d161 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 5 Apr 2021 11:39:54 -0400 Subject: [PATCH] google-compute-engine: use pythonImportsCheck Co-authored-by: Sandro --- pkgs/tools/virtualization/google-compute-engine/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/tools/virtualization/google-compute-engine/default.nix b/pkgs/tools/virtualization/google-compute-engine/default.nix index 1aa5674a0e8..4ec8fc112e8 100644 --- a/pkgs/tools/virtualization/google-compute-engine/default.nix +++ b/pkgs/tools/virtualization/google-compute-engine/default.nix @@ -51,11 +51,7 @@ buildPythonPackage rec { patchShebangs $out/bin/* ''; - checkPhase = '' - # this package has its own test suite, but they assume the ability to - # access resources like /sys/class/net causing them to fail in the sandbox - python -c 'import google_compute_engine' - ''; + pythonImportsCheck = [ "import google_compute_engine" ]; meta = with lib; { description = "Google Compute Engine tools and services";