diff options
author | Klaas van Schelven <klaas@vanschelven.com> | 2017-12-20 23:45:36 +0100 |
---|---|---|
committer | Klaas van Schelven <klaas@vanschelven.com> | 2017-12-20 23:45:36 +0100 |
commit | 388c119d0bd212766ee80a9d2e6722806f4bc761 (patch) | |
tree | 6e63ec9fc068d8279120f415b9896bb91db1c76d /pkgs/development/python-modules/google_auth | |
parent | 9cf561a90e3eeb1ce0e51267542350376a9f7501 (diff) | |
download | nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar.gz nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar.bz2 nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar.lz nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar.xz nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.tar.zst nixlib-388c119d0bd212766ee80a9d2e6722806f4bc761.zip |
google_auth: init at 1.2.1
Diffstat (limited to 'pkgs/development/python-modules/google_auth')
-rw-r--r-- | pkgs/development/python-modules/google_auth/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google_auth/default.nix b/pkgs/development/python-modules/google_auth/default.nix new file mode 100644 index 000000000000..04dfd26a0e8c --- /dev/null +++ b/pkgs/development/python-modules/google_auth/default.nix @@ -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 Google’s 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 ]; + }; +} |