2019-03-15 21:26:53 +00:00
|
|
|
{ lib
|
2021-03-18 07:10:01 +00:00
|
|
|
, stdenv
|
2019-03-15 21:26:53 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, mock
|
2021-01-05 15:30:32 +00:00
|
|
|
, pytestCheckHook
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-auth
|
2019-03-15 21:26:53 +00:00
|
|
|
, requests_oauthlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-auth-oauthlib";
|
2021-04-05 04:02:25 +01:00
|
|
|
version = "0.4.4";
|
2019-03-15 21:26:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-05 04:02:25 +01:00
|
|
|
sha256 = "sha256-CYMsbnUDL5OBjt8a/+R0YSHWQMYlpb75tclq9nbpju4=";
|
2019-03-15 21:26:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-06 09:46:48 +00:00
|
|
|
google-auth
|
2021-01-05 15:30:32 +00:00
|
|
|
requests_oauthlib
|
2019-03-15 21:26:53 +00:00
|
|
|
];
|
|
|
|
|
2021-01-05 15:30:32 +00:00
|
|
|
checkInputs = [
|
|
|
|
click
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-03-15 21:26:53 +00:00
|
|
|
|
2021-03-18 07:10:01 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_run_local_server" ];
|
|
|
|
|
2019-03-15 21:26:53 +00:00
|
|
|
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;
|
2021-01-05 15:30:32 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 terlar ];
|
2019-03-15 21:26:53 +00:00
|
|
|
};
|
|
|
|
}
|