about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/google_auth/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/google_auth/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/google_auth/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/google_auth/default.nix b/nixpkgs/pkgs/development/python-modules/google_auth/default.nix
new file mode 100644
index 000000000000..92369abec6d3
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/google_auth/default.nix
@@ -0,0 +1,57 @@
+{ 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.16.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1xd7fi7vhqbbkvwjg5fgj8bkbfjwxx4f2bb0zsnj8wci46qk4dqv";
+  };
+
+  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 = "Google Auth Python Library";
+    longDescription = ''
+      This library simplifies using Google’s various server-to-server
+      authentication mechanisms to access Google APIs.
+    '';
+    homepage = "https://github.com/googleapis/google-auth-library-python";
+    changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
+    # Documentation: https://googleapis.dev/python/google-auth/latest/index.html
+    license = licenses.asl20;
+    maintainers = with maintainers; [ ];
+  };
+}