2019-09-05 19:37:20 +01:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
|
2020-03-18 21:52:03 +00:00
|
|
|
|
, cachetools
|
|
|
|
|
, flask
|
|
|
|
|
, freezegun
|
|
|
|
|
, mock
|
|
|
|
|
, oauth2client
|
|
|
|
|
, pyasn1-modules
|
|
|
|
|
, pytest
|
|
|
|
|
, pytest-localserver
|
|
|
|
|
, requests
|
|
|
|
|
, responses
|
|
|
|
|
, rsa
|
|
|
|
|
, setuptools
|
|
|
|
|
, six
|
|
|
|
|
, urllib3
|
|
|
|
|
}:
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2020-08-16 18:31:00 +01:00
|
|
|
|
version = "1.20.1";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:00 +01:00
|
|
|
|
sha256 = "2f34dd810090d0d4c9d5787c4ad7b4413d1fbfb941e13682c7a2298d3b6cdcc8";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
2019-10-15 22:59:25 +01:00
|
|
|
|
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
2020-03-18 21:52:03 +00:00
|
|
|
|
checkInputs = [
|
|
|
|
|
flask
|
|
|
|
|
freezegun
|
|
|
|
|
mock
|
|
|
|
|
oauth2client
|
|
|
|
|
pytest
|
|
|
|
|
pytest-localserver
|
|
|
|
|
requests
|
|
|
|
|
responses
|
|
|
|
|
urllib3
|
|
|
|
|
];
|
|
|
|
|
|
2017-12-20 22:45:36 +00:00
|
|
|
|
checkPhase = ''
|
|
|
|
|
py.test
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-06-03 14:48:44 +01: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";
|
|
|
|
|
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
|
|
|
|
|
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
|
2017-12-20 22:45:36 +00:00
|
|
|
|
license = licenses.asl20;
|
2020-02-26 14:19:08 +00:00
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
}
|