Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.0.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-43UGSWSCC0ciGn4bfuH9dwUbYyPD+ePhl4X3irZ+z8U="; 23 }; 24 25 propagatedBuildInputs = [ 26 google-auth 27 requests-oauthlib 28 ]; 29 30 nativeCheckInputs = [ 31 click 32 mock 33 pytestCheckHook 34 ]; 35 36 # some tests require loopback networking 37 __darwinAllowLocalNetworking = true; 38 39 pythonImportsCheck = [ 40 "google_auth_oauthlib" 41 ]; 42 43 meta = with lib; { 44 description = "Google Authentication Library: oauthlib integration"; 45 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ SuperSandro2000 terlar ]; 48 }; 49}