google_auth: init at 1.2.1

This commit is contained in:
Klaas van Schelven 2017-12-20 23:45:36 +01:00
parent 9cf561a90e
commit 388c119d0b
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, mock, oauth2client, flask, requests, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
buildPythonPackage rec {
pname = "google-auth";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "041qpwlvpawggasvbfpkx39mkg4dgvivj831x7kinidayrf46w3i";
};
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 ];
};
}

View File

@ -9095,6 +9095,8 @@ in {
};
};
google_auth = callPackage ../development/python-modules/google_auth { };
grammalecte = callPackage ../development/python-modules/grammalecte { };
greenlet = buildPythonPackage rec {