pyjwt: fix tests to work with pytest >= 3.9.0
This commit is contained in:
parent
e8bce19aea
commit
28cdb6e841
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user