2021-03-18 07:08:32 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
2021-01-05 11:07:24 +00:00
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchpatch
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, pytestCheckHook
|
|
|
|
|
, cachetools
|
|
|
|
|
, flask
|
|
|
|
|
, freezegun
|
|
|
|
|
, mock
|
|
|
|
|
, oauth2client
|
|
|
|
|
, pyasn1-modules
|
|
|
|
|
, pytest-localserver
|
|
|
|
|
, responses
|
|
|
|
|
, rsa
|
2021-02-25 17:45:44 +00:00
|
|
|
|
, six
|
2021-03-20 18:58:38 +00:00
|
|
|
|
, pyopenssl
|
2021-01-05 11:07:24 +00:00
|
|
|
|
}:
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2021-03-24 09:28:12 +00:00
|
|
|
|
version = "1.28.0";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:12 +00:00
|
|
|
|
sha256 = "9bd436d19ab047001a1340720d2b629eb96dd503258c524921ec2af3ee88a80e";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-03-20 18:58:38 +00:00
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
cachetools
|
|
|
|
|
pyasn1-modules
|
|
|
|
|
rsa
|
|
|
|
|
six
|
|
|
|
|
pyopenssl
|
|
|
|
|
];
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
2020-03-18 21:52:03 +00:00
|
|
|
|
checkInputs = [
|
|
|
|
|
flask
|
|
|
|
|
freezegun
|
|
|
|
|
mock
|
|
|
|
|
oauth2client
|
2020-11-03 01:14:43 +00:00
|
|
|
|
pytestCheckHook
|
2020-03-18 21:52:03 +00:00
|
|
|
|
pytest-localserver
|
|
|
|
|
responses
|
2021-01-05 11:07:24 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
|
"google.auth"
|
|
|
|
|
"google.oauth2"
|
2020-03-18 21:52:03 +00:00
|
|
|
|
];
|
|
|
|
|
|
2021-03-18 07:08:32 +00:00
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
|
"test_request_with_timeout_success"
|
|
|
|
|
"test_request_with_timeout_failure"
|
|
|
|
|
"test_request_headers"
|
|
|
|
|
"test_request_error"
|
|
|
|
|
"test_request_basic"
|
|
|
|
|
];
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2020-06-03 13:48:44 +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";
|
2021-01-05 11:07:24 +00:00
|
|
|
|
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
license = licenses.asl20;
|
2021-01-05 11:07:24 +00:00
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
}
|