1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, click
6, mock
7, pytestCheckHook
8, google-auth
9, requests-oauthlib
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "google-auth-oauthlib";
15 version = "0.7.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-2xG85LPv/Jm1GOwiopA0cOCFPAySvldpTjaE5zjSJRM=";
23 };
24
25 propagatedBuildInputs = [
26 google-auth
27 requests-oauthlib
28 ];
29
30 checkInputs = [
31 click
32 mock
33 pytestCheckHook
34 ];
35
36 disabledTests = lib.optionals stdenv.isDarwin [
37 "test_run_local_server"
38 ];
39
40 pythonImportsCheck = [
41 "google_auth_oauthlib"
42 ];
43
44 meta = with lib; {
45 description = "Google Authentication Library: oauthlib integration";
46 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ SuperSandro2000 terlar ];
49 };
50}