1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, click
6, mock
7, pytestCheckHook
8, google-auth
9, requests_oauthlib
10}:
11
12buildPythonPackage rec {
13 pname = "google-auth-oauthlib";
14 version = "0.4.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-qQoHL2mT8sMnBnv2UnAEY4TNpajssguU6ppofx8jOno=";
19 };
20
21 propagatedBuildInputs = [
22 google-auth
23 requests_oauthlib
24 ];
25
26 checkInputs = [
27 click
28 mock
29 pytestCheckHook
30 ];
31
32 disabledTests = lib.optionals stdenv.isDarwin [ "test_run_local_server" ];
33
34 meta = with lib; {
35 description = "Google Authentication Library: oauthlib integration";
36 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ SuperSandro2000 terlar ];
39 };
40}