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 = "1.1.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-g+qMOwiB5FN5C6/0RI6KYRKsh3jR3p2gtoAQuEOTevs="; 23 }; 24 25 propagatedBuildInputs = [ 26 google-auth 27 requests-oauthlib 28 ]; 29 30 nativeCheckInputs = [ 31 click 32 mock 33 pytestCheckHook 34 ]; 35 36 disabledTests = lib.optionals stdenv.isDarwin [ 37 # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`). 38 "test_run_local_server_bind_addr" 39 ]; 40 41 pythonImportsCheck = [ 42 "google_auth_oauthlib" 43 ]; 44 45 meta = with lib; { 46 description = "Google Authentication Library: oauthlib integration"; 47 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ terlar ]; 50 }; 51}