28 buildPythonPackage rec {
29 pname = "google-auth";
33 disabled = pythonOlder "3.7";
36 pname = "google_auth";
38 hash = "sha256-9MZO1OAejotkbvNMAY+L8zON8MjjfYs7ukDn9XSjJ4o=";
41 nativeBuildInputs = [ setuptools ];
43 propagatedBuildInputs = [
49 optional-dependencies = {
63 requests = [ requests ];
79 ++ optional-dependencies.aiohttp
80 ++ optional-dependencies.enterprise_cert
81 ++ optional-dependencies.reauth;
83 pythonImportsCheck = [
88 disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
89 # Disable tests using pyOpenSSL as it does not build on M1 Macs
90 "tests/transport/test__mtls_helper.py"
91 "tests/transport/test_requests.py"
92 "tests/transport/test_urllib3.py"
93 "tests/transport/test__custom_tls_signer.py"
96 __darwinAllowLocalNetworking = true;
99 description = "Google Auth Python Library";
101 This library simplifies using Google's various server-to-server
102 authentication mechanisms to access Google APIs.
104 homepage = "https://github.com/googleapis/google-auth-library-python";
105 changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
106 license = licenses.asl20;