2021-01-25 08:26:54 +00:00
|
|
|
|
{ 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-01-05 11:07:24 +00:00
|
|
|
|
}:
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2021-01-05 11:07:24 +00:00
|
|
|
|
version = "1.24.0";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2021-01-05 11:07:24 +00:00
|
|
|
|
sha256 = "0bmdqkyv8k8n6s8dss4zpbcq1cdxwicpb42kwybd02ia85mh43hb";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-25 17:45:44 +00:00
|
|
|
|
propagatedBuildInputs = [ pyasn1-modules cachetools rsa six ];
|
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-01-11 07:54:33 +00:00
|
|
|
|
meta = with 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";
|
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
|
|
|
|
};
|
|
|
|
|
}
|