28 buildPythonPackage rec {
29 pname = "google-auth";
33 inherit pname version;
34 sha256 = "sha256-zySBeFXYdO3i79BxqiISVEX1Vd4Whbc5qXgvz0CMKj0=";
37 propagatedBuildInputs = [
44 passthru.optional-dependencies = {
74 ] ++ passthru.optional-dependencies.aiohttp
75 # `cryptography` is still required on `aarch64-darwin` for `tests/crypt/*`
76 ++ (if (stdenv.isDarwin && stdenv.isAarch64) then [ cryptography ] else passthru.optional-dependencies.enterprise_cert)
77 ++ passthru.optional-dependencies.reauth;
79 pythonImportsCheck = [
84 disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
85 # Disable tests using pyOpenSSL as it does not build on M1 Macs
86 "tests/transport/test__mtls_helper.py"
87 "tests/transport/test_requests.py"
88 "tests/transport/test_urllib3.py"
89 "tests/transport/test__custom_tls_signer.py"
93 description = "Google Auth Python Library";
95 This library simplifies using Google’s various server-to-server
96 authentication mechanisms to access Google APIs.
98 homepage = "https://github.com/googleapis/google-auth-library-python";
99 changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
100 license = licenses.asl20;
101 maintainers = with maintainers; [ SuperSandro2000 ];