nixpkgs/pkgs/development/python-modules/google_auth/default.nix
Ruud van Asseldonk 5fa0590cc7 python3Packages.google_auth: 1.6.3 -> 1.10.0
It builds fine without the test-related patches now, so let's remove
those patches. Also, a new dependency is required to run the tests.
2020-02-14 11:22:09 -08:00

27 lines
917 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; [ vanschelven ];
};
}