From f89f4578fd1fd6eb5d6e34d4f36182af3d906351 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 18 Mar 2020 15:26:52 -0700 Subject: [PATCH] python3Packages.google_cloud_runtimeconfig: fix tests --- .../python-modules/google_cloud_runtimeconfig/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix b/pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix index a1628b991400..f8962e6fa5d9 100644 --- a/pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix +++ b/pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix @@ -19,13 +19,15 @@ buildPythonPackage rec { checkInputs = [ pytest mock ]; propagatedBuildInputs = [ google_api_core google_cloud_core ]; + # ignore tests which require credentials or network checkPhase = '' - pytest tests/unit + rm -r google + pytest tests/unit -k 'not client and not extra_headers' ''; meta = with stdenv.lib; { description = "Google Cloud RuntimeConfig API client library"; - homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; + homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; license = licenses.asl20; maintainers = [ maintainers.costrouc ]; };