1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
{ lib
, stdenv
, aiohttp
, aioresponses
, buildPythonPackage
, cachetools
, cryptography
, fetchPypi
, flask
, freezegun
, grpcio
, mock
, oauth2client
, pyasn1-modules
, pyopenssl
, pytest-asyncio
, pytest-localserver
, pytestCheckHook
, pythonOlder
, pyu2f
, requests
, responses
, rsa
, setuptools
}:
buildPythonPackage rec {
pname = "google-auth";
version = "2.28.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NPwwRsJXztzxYi/Esx/Cvnkj2bTUSXPUgRJezFDYOIU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
cachetools
pyasn1-modules
rsa
];
passthru.optional-dependencies = {
aiohttp = [
aiohttp
requests
];
enterprise_cert = [
cryptography
pyopenssl
];
pyopenssl = [
cryptography
pyopenssl
];
reauth = [
pyu2f
];
requests = [
requests
];
};
nativeCheckInputs = [
aioresponses
flask
freezegun
grpcio
mock
oauth2client
pytest-asyncio
pytest-localserver
pytestCheckHook
responses
] ++ passthru.optional-dependencies.aiohttp
++ passthru.optional-dependencies.enterprise_cert
++ passthru.optional-dependencies.reauth;
pythonImportsCheck = [
"google.auth"
"google.oauth2"
];
disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# Disable tests using pyOpenSSL as it does not build on M1 Macs
"tests/transport/test__mtls_helper.py"
"tests/transport/test_requests.py"
"tests/transport/test_urllib3.py"
"tests/transport/test__custom_tls_signer.py"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Google Auth Python Library";
longDescription = ''
This library simplifies using Google's various server-to-server
authentication mechanisms to access Google APIs.
'';
homepage = "https://github.com/googleapis/google-auth-library-python";
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
|