1{ stdenv
2, lib
3, buildPythonPackage
4, fetchpatch
5, fetchPypi
6, pytestCheckHook
7, cachetools
8, flask
9, freezegun
10, mock
11, oauth2client
12, pyasn1-modules
13, pytest-localserver
14, responses
15, rsa
16, six
17, pyopenssl
18}:
19
20buildPythonPackage rec {
21 pname = "google-auth";
22 version = "1.28.0";
23
24 src = fetchPypi {
25 inherit pname version;
26 sha256 = "9bd436d19ab047001a1340720d2b629eb96dd503258c524921ec2af3ee88a80e";
27 };
28
29 propagatedBuildInputs = [
30 cachetools
31 pyasn1-modules
32 rsa
33 six
34 pyopenssl
35 ];
36
37 checkInputs = [
38 flask
39 freezegun
40 mock
41 oauth2client
42 pytestCheckHook
43 pytest-localserver
44 responses
45 ];
46
47 pythonImportsCheck = [
48 "google.auth"
49 "google.oauth2"
50 ];
51
52 disabledTests = lib.optionals stdenv.isDarwin [
53 "test_request_with_timeout_success"
54 "test_request_with_timeout_failure"
55 "test_request_headers"
56 "test_request_error"
57 "test_request_basic"
58 ];
59
60 meta = with lib; {
61 description = "Google Auth Python Library";
62 longDescription = ''
63 This library simplifies using Google’s various server-to-server
64 authentication mechanisms to access Google APIs.
65 '';
66 homepage = "https://github.com/googleapis/google-auth-library-python";
67 changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
68 license = licenses.asl20;
69 maintainers = with maintainers; [ SuperSandro2000 ];
70 };
71}