1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/development/python-modules/google_auth/default.nix
2018-08-25 07:38:21 +02:00

32 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, fetchPypi
, pytest, mock, oauth2client, flask, requests, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
buildPythonPackage rec {
pname = "google-auth";
version = "1.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "9ca363facbf2622d9ba828017536ccca2e0f58bd15e659b52f312172f8815530";
};
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa ];
# The removed test tests the working together of google_auth and google's https://pypi.python.org/pypi/oauth2client
# but the latter is deprecated. Since it is not currently part of the nixpkgs collection and deprecated it will
# probably never be. We just remove the test to make the tests work again.
postPatch = ''rm tests/test__oauth2client.py'';
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; [ vanschelven ];
};
}