1{ lib
2, isPy3k
3, buildPythonPackage
4, fetchPypi
5, flask
6, mock
7, six
8, pytest
9, pytest-localserver
10, google_auth
11, httplib2
12
13}:
14
15buildPythonPackage rec {
16 pname = "google-auth-httplib2";
17 version = "0.0.4";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "8d092cc60fb16517b12057ec0bba9185a96e3b7169d86ae12eae98e645b7bc39";
22 };
23
24 checkInputs = [
25 flask mock six pytest pytest-localserver
26 ];
27
28 propagatedBuildInputs = [
29 google_auth httplib2
30 ];
31
32 checkPhase = ''
33 py.test
34 '';
35
36 # ImportError: No module named google.auth
37 doCheck = isPy3k;
38
39 meta = {
40 description = "Google Authentication Library: httplib2 transport";
41 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2";
42 license = lib.licenses.asl20;
43 };
44
45}