1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/google_auth/default.nix

27 lines
905 B
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, fetchpatch, fetchPypi
, pytest, mock, oauth2client, flask, requests, setuptools, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa, freezegun }:
buildPythonPackage rec {
pname = "google-auth";
version = "1.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "1xs8ch6bz57vs6j0p8061c7wj9ahkvrfpf1y9v7r009979507ckv";
};
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver freezegun ];
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
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; [ ];
};
}