2019-09-05 19:37:20 +01:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
|
2020-01-14 16:31:54 +00:00
|
|
|
|
, pytest, mock, oauth2client, flask, requests, setuptools, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa, freezegun }:
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "google-auth";
|
2020-01-14 16:31:54 +00:00
|
|
|
|
version = "1.10.0";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-01-14 16:31:54 +00:00
|
|
|
|
sha256 = "1xs8ch6bz57vs6j0p8061c7wj9ahkvrfpf1y9v7r009979507ckv";
|
2017-12-20 22:45:36 +00:00
|
|
|
|
};
|
|
|
|
|
|
2020-01-14 16:31:54 +00:00
|
|
|
|
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver freezegun ];
|
2019-10-15 22:59:25 +01:00
|
|
|
|
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
2017-12-20 22:45:36 +00: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;
|
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
|
};
|
|
|
|
|
}
|