2020-04-24 23:36:52 +00:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
|
|
|
|
|
, cachetools
|
|
|
|
|
, flask
|
|
|
|
|
, freezegun
|
|
|
|
|
, mock
|
|
|
|
|
, oauth2client
|
|
|
|
|
, pyasn1-modules
|
|
|
|
|
, pytest
|
|
|
|
|
, pytest-localserver
|
|
|
|
|
, requests
|
|
|
|
|
, responses
|
|
|
|
|
, rsa
|
|
|
|
|
, setuptools
|
|
|
|
|
, six
|
|
|
|
|
, urllib3
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
version = "1.17.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
|
sha256 = "2f35b33801a41e4115cd93ff0aeb152f383edc0e27277ae28be2dccf238611b9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
|
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
|
flask
|
|
|
|
|
freezegun
|
|
|
|
|
mock
|
|
|
|
|
oauth2client
|
|
|
|
|
pytest
|
|
|
|
|
pytest-localserver
|
|
|
|
|
requests
|
|
|
|
|
responses
|
|
|
|
|
urllib3
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
|
py.test
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
|
|
|
|
|
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
|
};
|
|
|
|
|
}
|