depot/third_party/nixpkgs/pkgs/development/python-modules/google_auth/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

57 lines
1.2 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, buildPythonPackage, fetchpatch, fetchPypi
, cachetools
, flask
, freezegun
, mock
, oauth2client
, pyasn1-modules
, pytest
, pytest-localserver
, requests
, responses
, rsa
, setuptools
, six
, urllib3
}:
buildPythonPackage rec {
pname = "google-auth";
version = "1.17.2";
src = fetchPypi {
inherit pname version;
sha256 = "e634b649967d83c02dd386ecae9ce4a571528d59d51a4228757e45f5404a060b";
};
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
checkInputs = [
flask
freezegun
mock
oauth2client
pytest
pytest-localserver
requests
responses
urllib3
];
checkPhase = ''
py.test
'';
meta = with stdenv.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";
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}