nixpkgs-suyu/pkgs/development/python-modules/google_auth/default.nix
2020-03-19 10:21:02 -07:00

51 lines
978 B
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.11.3";
src = fetchPypi {
inherit pname version;
sha256 = "05av4clwv7kdk1v55ibcv8aim6dwfg1mi4wy0vv91fr6wq3205zc";
};
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 = "This library simplifies using Googles various server-to-server authentication mechanisms to access Google APIs.";
homepage = "https://google-auth.readthedocs.io/en/latest/";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}