depot/third_party/nixpkgs/pkgs/development/python-modules/google-auth/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

101 lines
1.9 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, cachetools
, pyasn1-modules
, rsa
, six
, aiohttp
, cryptography
, pyopenssl
, pyu2f
, requests
, aioresponses
, asynctest
, flask
, freezegun
, grpcio
, mock
, oauth2client
, pytest-asyncio
, pytest-localserver
, pytestCheckHook
, responses
, urllib3
}:
buildPythonPackage rec {
pname = "google-auth";
version = "2.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-FCkvo0KfK7HpmGJVTN4e5zDWhA664GeBTT0V2FScCIg=";
};
propagatedBuildInputs = [
cachetools
pyasn1-modules
rsa
six
];
passthru.optional-dependencies = {
aiohttp = [
aiohttp
requests
];
enterprise_cert = [
cryptography
pyopenssl
];
pyopenssl = [
pyopenssl
];
reauth = [
pyu2f
];
};
checkInputs = [
aioresponses
asynctest
flask
freezegun
grpcio
mock
oauth2client
pytest-asyncio
pytest-localserver
pytestCheckHook
responses
urllib3
] ++ passthru.optional-dependencies.aiohttp
++ passthru.optional-dependencies.enterprise_cert
++ passthru.optional-dependencies.reauth;
pythonImportsCheck = [
"google.auth"
"google.oauth2"
];
disabledTestPaths = [
# Disable tests related to pyopenssl
"tests/transport/test__mtls_helper.py"
"tests/transport/test_requests.py"
"tests/transport/test_urllib3.py"
];
meta = with lib; {
description = "Google Auth Python Library";
longDescription = ''
This library simplifies using Googles various server-to-server
authentication mechanisms to access Google APIs.
'';
homepage = "https://github.com/googleapis/google-auth-library-python";
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}