summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-03-18 15:26:52 -0700
committerJon <jonringer@users.noreply.github.com>2020-03-19 10:21:02 -0700
commitf89f4578fd1fd6eb5d6e34d4f36182af3d906351 (patch)
tree0f66c7528dbcda5d7c9bbc2f47ffe270fdaf8e88
parent41e4419593d2ebb83b1d3ac4d97774a4867a28f3 (diff)
python3Packages.google_cloud_runtimeconfig: fix tests
-rw-r--r--pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix6
1 files 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 ];
};