2019-03-15 22:26:53 +01:00
|
|
|
{ lib
|
2021-03-18 00:10:01 -07:00
|
|
|
, stdenv
|
2019-03-15 22:26:53 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, mock
|
2021-01-05 16:30:32 +01:00
|
|
|
, pytestCheckHook
|
2021-01-06 10:46:48 +01:00
|
|
|
, google-auth
|
2022-02-25 15:07:44 +01:00
|
|
|
, requests-oauthlib
|
|
|
|
, pythonOlder
|
2019-03-15 22:26:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-auth-oauthlib";
|
2023-02-27 02:14:20 +01:00
|
|
|
version = "1.0.0";
|
2022-02-25 15:07:44 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-03-15 22:26:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-43UGSWSCC0ciGn4bfuH9dwUbYyPD+ePhl4X3irZ+z8U=";
|
2019-03-15 22:26:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-06 10:46:48 +01:00
|
|
|
google-auth
|
2022-02-25 15:07:44 +01:00
|
|
|
requests-oauthlib
|
2019-03-15 22:26:53 +01:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-05 16:30:32 +01:00
|
|
|
click
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-03-15 22:26:53 +01:00
|
|
|
|
2023-01-08 18:59:58 -05:00
|
|
|
# some tests require loopback networking
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2022-02-25 15:07:44 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google_auth_oauthlib"
|
|
|
|
];
|
2021-03-18 00:10:01 -07:00
|
|
|
|
2019-03-15 22:26:53 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Authentication Library: oauthlib integration";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
|
2019-03-15 22:26:53 +01:00
|
|
|
license = licenses.asl20;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ terlar ];
|
2019-03-15 22:26:53 +01:00
|
|
|
};
|
|
|
|
}
|