mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-29 08:30:21 +02:00
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 ];
|
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; {
|
meta = with lib; {
|
||||||
description = "JSON Web Token implementation in Python";
|
description = "JSON Web Token implementation in Python";
|
||||||
homepage = https://github.com/jpadilla/pyjwt;
|
homepage = https://github.com/jpadilla/pyjwt;
|
||||||
|
|
Loading…
Reference in a new issue