52e9198719
============================= 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
46 lines
790 B
Nix
46 lines
790 B
Nix
{ lib
|
|
, isPy3k
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flask
|
|
, mock
|
|
, six
|
|
, pytest
|
|
, pytest-localserver
|
|
, google_auth
|
|
, httplib2
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-auth-httplib2";
|
|
version = "0.0.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "098fade613c25b4527b2c08fa42d11f3c2037dda8995d86de0745228e965d445";
|
|
};
|
|
|
|
checkInputs = [
|
|
flask mock six pytest pytest-localserver
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
google_auth httplib2
|
|
];
|
|
|
|
checkPhase = ''
|
|
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;
|
|
};
|
|
|
|
}
|