Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, click 6, mock 7, pytest 8, futures 9, google_auth 10, requests_oauthlib 11}: 12 13buildPythonPackage rec { 14 pname = "google-auth-oauthlib"; 15 version = "0.4.1"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "88d2cd115e3391eb85e1243ac6902e76e77c5fe438b7276b297fbe68015458dd"; 20 }; 21 22 checkInputs = [ 23 click mock pytest 24 ] ++ lib.optionals (!isPy3k) [ futures ]; 25 26 propagatedBuildInputs = [ 27 google_auth requests_oauthlib 28 ]; 29 30 doCheck = isPy3k; 31 checkPhase = '' 32 rm -fr tests/__pycache__/ google 33 py.test 34 ''; 35 36 meta = with lib; { 37 description = "Google Authentication Library: oauthlib integration"; 38 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ terlar ]; 41 }; 42}