1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
50 lines
958 B
Nix
50 lines
958 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, click
|
|
, mock
|
|
, pytestCheckHook
|
|
, google-auth
|
|
, requests-oauthlib
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-auth-oauthlib";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-2xG85LPv/Jm1GOwiopA0cOCFPAySvldpTjaE5zjSJRM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
google-auth
|
|
requests-oauthlib
|
|
];
|
|
|
|
checkInputs = [
|
|
click
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
"test_run_local_server"
|
|
];
|
|
|
|
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; [ SuperSandro2000 terlar ];
|
|
};
|
|
}
|