1{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
2, cachetools
3, flask
4, freezegun
5, mock
6, oauth2client
7, pyasn1-modules
8, pytest
9, pytest-localserver
10, requests
11, responses
12, rsa
13, setuptools
14, six
15, urllib3
16}:
17
18buildPythonPackage rec {
19 pname = "google-auth";
20 version = "1.20.1";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "2f34dd810090d0d4c9d5787c4ad7b4413d1fbfb941e13682c7a2298d3b6cdcc8";
25 };
26
27 propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
28
29 checkInputs = [
30 flask
31 freezegun
32 mock
33 oauth2client
34 pytest
35 pytest-localserver
36 requests
37 responses
38 urllib3
39 ];
40
41 checkPhase = ''
42 py.test
43 '';
44
45 meta = with stdenv.lib; {
46 description = "Google Auth Python Library";
47 longDescription = ''
48 This library simplifies using Google’s various server-to-server
49 authentication mechanisms to access Google APIs.
50 '';
51 homepage = "https://github.com/googleapis/google-auth-library-python";
52 changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
53 # Documentation: https://googleapis.dev/python/google-auth/latest/index.html
54 license = licenses.asl20;
55 maintainers = with maintainers; [ ];
56 };
57}