pyjwt: fix tests to work with pytest >= 3.9.0

This commit is contained in:
Will Dietz 2018-10-31 13:12:25 -05:00 committed by Frederik Rietdijk
parent e8bce19aea
commit 28cdb6e841

View file

@ -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;