google-compute-engine: use pythonImportsCheck

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Phillip Cloud 2021-04-05 11:39:54 -04:00 committed by GitHub
parent a9d8afeba9
commit 3568e9526d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";