2019-09-05 20:37:20 +02:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
|
2020-03-18 22:52:03 +01:00
|
|
|
|
, cachetools
|
|
|
|
|
, flask
|
|
|
|
|
, freezegun
|
|
|
|
|
, mock
|
|
|
|
|
, oauth2client
|
|
|
|
|
, pyasn1-modules
|
|
|
|
|
, pytest
|
|
|
|
|
, pytest-localserver
|
|
|
|
|
, requests
|
|
|
|
|
, responses
|
|
|
|
|
, rsa
|
|
|
|
|
, setuptools
|
|
|
|
|
, six
|
|
|
|
|
, urllib3
|
|
|
|
|
}:
|
2017-12-20 23:45:36 +01:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2020-03-18 22:52:03 +01:00
|
|
|
|
version = "1.11.3";
|
2017-12-20 23:45:36 +01:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-03-18 22:52:03 +01:00
|
|
|
|
sha256 = "05av4clwv7kdk1v55ibcv8aim6dwfg1mi4wy0vv91fr6wq3205zc";
|
2017-12-20 23:45:36 +01:00
|
|
|
|
};
|
|
|
|
|
|
2019-10-15 23:59:25 +02:00
|
|
|
|
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
2017-12-20 23:45:36 +01:00
|
|
|
|
|
2020-03-18 22:52:03 +01:00
|
|
|
|
checkInputs = [
|
|
|
|
|
flask
|
|
|
|
|
freezegun
|
|
|
|
|
mock
|
|
|
|
|
oauth2client
|
|
|
|
|
pytest
|
|
|
|
|
pytest-localserver
|
|
|
|
|
requests
|
|
|
|
|
responses
|
|
|
|
|
urllib3
|
|
|
|
|
];
|
|
|
|
|
|
2017-12-20 23:45:36 +01:00
|
|
|
|
checkPhase = ''
|
|
|
|
|
py.test
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "This library simplifies using Google’s various server-to-server authentication mechanisms to access Google APIs.";
|
|
|
|
|
homepage = "https://google-auth.readthedocs.io/en/latest/";
|
|
|
|
|
license = licenses.asl20;
|
2020-02-26 15:19:08 +01:00
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-12-20 23:45:36 +01:00
|
|
|
|
};
|
|
|
|
|
}
|