nixpkgs/pkgs/development/python-modules/google_auth/default.nix

27 lines
917 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
, pytest, mock, oauth2client, flask, requests, setuptools, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa, freezegun }:
2017-12-20 22:45:36 +00:00
buildPythonPackage rec {
pname = "google-auth";
version = "1.10.0";
2017-12-20 22:45:36 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1xs8ch6bz57vs6j0p8061c7wj9ahkvrfpf1y9v7r009979507ckv";
2017-12-20 22:45:36 +00:00
};
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver freezegun ];
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
2017-12-20 22:45:36 +00:00
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 ];
};
}