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