2019-03-15 21:26:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-04-25 17:20:18 +01:00
|
|
|
, isPy3k
|
2019-03-15 21:26:53 +00:00
|
|
|
, click
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, futures
|
|
|
|
, google_auth
|
|
|
|
, requests_oauthlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-auth-oauthlib";
|
2019-05-02 06:16:27 +01:00
|
|
|
version = "0.3.0";
|
2019-03-15 21:26:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-02 06:16:27 +01:00
|
|
|
sha256 = "03rq2rjac0zh16vsw0q914sp62l9f8fp033wn3191pqd2cchqix0";
|
2019-03-15 21:26:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-04-25 17:20:18 +01:00
|
|
|
click mock pytest
|
|
|
|
] ++ lib.optionals (!isPy3k) [ futures ];
|
2019-03-15 21:26:53 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_auth requests_oauthlib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-05-02 06:16:27 +01:00
|
|
|
rm -fr tests/__pycache__/
|
2019-03-15 21:26:53 +00:00
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authentication Library: oauthlib integration";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ terlar ];
|
|
|
|
};
|
|
|
|
}
|