1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, click
6, mock
7, pytest
8, futures
9, google_auth
10, requests_oauthlib
11}:
12
13buildPythonPackage rec {
14 pname = "google-auth-oauthlib";
15 version = "0.4.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "88d2cd115e3391eb85e1243ac6902e76e77c5fe438b7276b297fbe68015458dd";
20 };
21
22 checkInputs = [
23 click mock pytest
24 ] ++ lib.optionals (!isPy3k) [ futures ];
25
26 propagatedBuildInputs = [
27 google_auth requests_oauthlib
28 ];
29
30 checkPhase = ''
31 rm -fr tests/__pycache__/
32 py.test
33 '';
34
35 meta = with lib; {
36 description = "Google Authentication Library: oauthlib integration";
37 homepage = https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib;
38 license = licenses.asl20;
39 maintainers = with maintainers; [ terlar ];
40 };
41}