From 28cdb6e841b9098517c2a7957454437387ca887d Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 31 Oct 2018 13:12:25 -0500 Subject: [PATCH] pyjwt: fix tests to work with pytest >= 3.9.0 --- pkgs/development/python-modules/pyjwt/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/pyjwt/default.nix b/pkgs/development/python-modules/pyjwt/default.nix index f7d3e32f992..94a1a4e6b0e 100644 --- a/pkgs/development/python-modules/pyjwt/default.nix +++ b/pkgs/development/python-modules/pyjwt/default.nix @@ -15,6 +15,13 @@ buildPythonPackage rec { checkInputs = [ pytestrunner pytestcov pytest ]; + # pytest 3.9.0 changed behavior of deprecated_call, see release notes + postPatch = '' + for x in tests/test_api_*py; do + substituteInPlace "$x" --replace AssertionError pytest.fail.Exception + done + ''; + meta = with lib; { description = "JSON Web Token implementation in Python"; homepage = https://github.com/jpadilla/pyjwt;