python3Packages.google_cloud_runtimeconfig: fix tests

This commit is contained in:
Jonathan Ringer 2020-03-18 15:26:52 -07:00 committed by Jon
parent 41e4419593
commit f89f4578fd

View File

@ -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 ];
};