2020-11-06 00:33:48 +00:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, pythonOlder
|
|
|
|
|
, pytestCheckHook, cachetools, flask, freezegun, mock, oauth2client
|
|
|
|
|
, pyasn1-modules, pytest, pytest-localserver, requests, responses, rsa
|
|
|
|
|
, setuptools, six, urllib3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
version = "1.22.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-11-06 00:33:48 +00:00
|
|
|
|
sha256 = "1fs448jcx2cbpk0nq3picndfryjsakmd9allggvh7mrqjiw723ww";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
|
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
|
flask
|
|
|
|
|
freezegun
|
|
|
|
|
mock
|
|
|
|
|
oauth2client
|
2020-11-06 00:33:48 +00:00
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
|
pytest-localserver
|
|
|
|
|
requests
|
|
|
|
|
responses
|
|
|
|
|
urllib3
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
|
description = "Google Auth Python Library";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
This library simplifies using Google’s various server-to-server
|
|
|
|
|
authentication mechanisms to access Google APIs.
|
|
|
|
|
'';
|
|
|
|
|
homepage = "https://github.com/googleapis/google-auth-library-python";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
changelog =
|
|
|
|
|
"https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
|
};
|
|
|
|
|
}
|