5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
49 lines
945 B
Nix
49 lines
945 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, click
|
|
, mock
|
|
, pytestCheckHook
|
|
, google-auth
|
|
, requests-oauthlib
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-auth-oauthlib";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-43UGSWSCC0ciGn4bfuH9dwUbYyPD+ePhl4X3irZ+z8U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
google-auth
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
click
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
# some tests require loopback networking
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [
|
|
"google_auth_oauthlib"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|