2018-08-21 00:33:44 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, cryptography, ecdsa
|
2018-12-04 15:43:01 +00:00
|
|
|
, pytestrunner, pytestcov, pytest }:
|
2018-08-21 00:33:44 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyJWT";
|
|
|
|
version = "1.6.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "4ee413b357d53fd3fb44704577afac88e72e878716116270d722723d65b42176";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography ecdsa ];
|
|
|
|
|
2018-12-04 15:43:01 +00:00
|
|
|
checkInputs = [ pytestrunner pytestcov pytest ];
|
2018-08-21 00:33:44 +01:00
|
|
|
|
2018-10-31 18:12:25 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2018-11-12 10:33:50 +00:00
|
|
|
# https://github.com/jpadilla/pyjwt/issues/382
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-08-21 00:33:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "JSON Web Token implementation in Python";
|
|
|
|
homepage = https://github.com/jpadilla/pyjwt;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prikhi ];
|
|
|
|
};
|
|
|
|
}
|