2019-03-15 21:26:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-05 23:20:01 +00:00
|
|
|
, pythonOlder
|
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";
|
2020-11-04 14:04:22 +00:00
|
|
|
version = "0.4.2";
|
2020-11-05 23:20:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-03-15 21:26:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:22 +00:00
|
|
|
sha256 = "65b65bc39ad8cab15039b35e5898455d3d66296d0584d96fe0e79d67d04c51d9";
|
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
|
|
|
|
];
|
|
|
|
|
2020-03-18 22:29:10 +00:00
|
|
|
doCheck = isPy3k;
|
2019-03-15 21:26:53 +00:00
|
|
|
checkPhase = ''
|
2020-03-18 22:29:10 +00:00
|
|
|
rm -fr tests/__pycache__/ google
|
2019-03-15 21:26:53 +00:00
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authentication Library: oauthlib integration";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
|
2019-03-15 21:26:53 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ terlar ];
|
|
|
|
};
|
|
|
|
}
|