python2.pkgs.google-auth-httplib2: disable tests

============================= test session starts ==============================
	platform linux2 -- Python 2.7.17, pytest-4.6.6, py-1.8.0, pluggy-0.13.0
	rootdir: /build/google-auth-httplib2-0.0.3
	plugins: localserver-0.5.0
	collected 0 items / 1 errors

	==================================== ERRORS ====================================
	_____________ ERROR collecting tests/test_google_auth_httplib2.py ______________
	ImportError while importing test module '/build/google-auth-httplib2-0.0.3/tests/test_google_auth_httplib2.py'.
	Hint: make sure your test modules/packages have valid Python names.
	Traceback:
	tests/test_google_auth_httplib2.py:20: in <module>
	    import google_auth_httplib2
	google_auth_httplib2.py:21: in <module>
	    from google.auth import exceptions
	E   ImportError: No module named google.auth
This commit is contained in:
Jan Tojnar 2019-11-19 16:43:20 +01:00
parent cce5926ae9
commit 52e9198719
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{ lib
, isPy3k
, buildPythonPackage
, fetchPypi
, flask
@ -32,10 +33,13 @@ buildPythonPackage rec {
py.test
'';
# ImportError: No module named google.auth
doCheck = isPy3k;
meta = {
description = "Google Authentication Library: httplib2 transport";
homepage = https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2;
license = lib.licenses.asl20;
};
}
}

View file

@ -3400,7 +3400,7 @@ in {
google_api_python_client = let
google_api_python_client = callPackage ../development/python-modules/google-api-python-client { };
in if isPy3k then google_api_python_client else
# Python 2.7 support was deprecated but is still needed by weboob
# Python 2.7 support was deprecated but is still needed by weboob and duplicity
google_api_python_client.overridePythonAttrs (old: rec {
version = "1.7.6";
src = old.src.override {