Merge pull request #57705 from terlar/add-python-package-google-auth-oauthlib

pythonPackages.google-auth-oauthlib: init at 0.2.0
This commit is contained in:
Robert Schütz 2019-03-15 22:47:18 +01:00 committed by GitHub
commit 0866dd09e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -4683,6 +4683,11 @@
github = "teozkr";
name = "Teo Klestrup Röijezon";
};
terlar = {
email = "terlar@gmail.com";
github = "terlar";
name = "Terje Larsen";
};
teto = {
email = "mcoudron@hotmail.com";
github = "teto";

View file

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchPypi
, click
, mock
, pytest
, futures
, google_auth
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "google-auth-oauthlib";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "226d1d0960f86ba5d9efd426a70b291eaba96f47d071657e0254ea969025728a";
};
checkInputs = [
click mock pytest futures
];
propagatedBuildInputs = [
google_auth requests_oauthlib
];
checkPhase = ''
py.test
'';
meta = with lib; {
description = "Google Authentication Library: oauthlib integration";
homepage = https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib;
license = licenses.asl20;
maintainers = with maintainers; [ terlar ];
};
}

View file

@ -2697,6 +2697,8 @@ in {
google-auth-httplib2 = callPackage ../development/python-modules/google-auth-httplib2 { };
google-auth-oauthlib = callPackage ../development/python-modules/google-auth-oauthlib { };
google_api_core = callPackage ../development/python-modules/google_api_core { };
google_api_python_client = let