aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/google_auth
diff options
context:
space:
mode:
authorAluísio Augusto Silva Gonçalves <aluisio@aasg.name>2019-09-05 15:37:20 -0300
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-09-06 19:08:51 +0200
commite030351740c28f9d5ce05628e81b88ee8211207a (patch)
tree78e338581535f658dd2d0dd11ffca8490444f9ca /pkgs/development/python-modules/google_auth
parent084bd0ca661b65ad38e5f0d3d228ea514fdfb1ac (diff)
python: google-auth: make tests compatible with pytest 5
Diffstat (limited to 'pkgs/development/python-modules/google_auth')
-rw-r--r--pkgs/development/python-modules/google_auth/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/google_auth/default.nix b/pkgs/development/python-modules/google_auth/default.nix
index b0b6bfaa5ef9..315d4756e0db 100644
--- a/pkgs/development/python-modules/google_auth/default.nix
+++ b/pkgs/development/python-modules/google_auth/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchPypi
+{ stdenv, buildPythonPackage, fetchpatch, fetchPypi
, pytest, mock, oauth2client, flask, requests, urllib3, pytest-localserver, six, pyasn1-modules, cachetools, rsa }:
buildPythonPackage rec {
@@ -9,6 +9,13 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "0f7c6a64927d34c1a474da92cfc59e552a5d3b940d3266606c6a28b72888b9e4";
};
+ patches = [
+ (fetchpatch {
+ name = "use-new-pytest-api-to-keep-building-with-pytest5.patch";
+ url = "https://github.com/googleapis/google-auth-library-python/commit/b482417a04dbbc207fcd6baa7a67e16b1a9ffc77.patch";
+ sha256 = "07jpa7pa6sffbcwlsg5fgcv2vvngil5qpmv6fhjqp7fnvx0674s0";
+ })
+ ];
checkInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa ];