15 buildPythonPackage rec {
16 pname = "google-auth-oauthlib";
20 disabled = pythonOlder "3.6";
23 pname = "google_auth_oauthlib";
25 hash = "sha256-r9DK0JKi6qU82OgphVfW3hA0xstKdAUAtTV7ZIr5cmM=";
28 build-system = [ setuptools ];
35 optional-dependencies = {
42 ] ++ optional-dependencies.tool;
46 # Flaky test. See https://github.com/NixOS/nixpkgs/issues/288424#issuecomment-1941609973.
47 "test_run_local_server_occupied_port"
49 ++ lib.optionals stdenv.hostPlatform.isDarwin [
50 # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`).
51 "test_run_local_server_bind_addr"
54 pythonImportsCheck = [ "google_auth_oauthlib" ];
57 description = "Google Authentication Library: oauthlib integration";
58 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
59 changelog = "https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v${version}/CHANGELOG.md";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ terlar ];
62 mainProgram = "google-oauthlib-tool";