2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-04-25 03:57:28 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, mock
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, google-auth
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests_oauthlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-auth-oauthlib";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "0.4.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "sha256-qQoHL2mT8sMnBnv2UnAEY4TNpajssguU6ppofx8jOno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-09 10:05:03 +00:00
|
|
|
google-auth
|
|
|
|
requests_oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
checkInputs = [
|
|
|
|
click
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_run_local_server" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authentication Library: oauthlib integration";
|
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
|
|
|
|
license = licenses.asl20;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 terlar ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|