python3Packages.pyjwt: cleanup

This commit is contained in:
Fabian Affolter 2021-05-06 09:10:54 +02:00
parent cf39516035
commit d5bec77379

View File

@ -1,6 +1,12 @@
{ lib, buildPythonPackage, fetchPypi { lib
, cryptography, ecdsa , buildPythonPackage
, pytestrunner, pytestcov, pytest }: , fetchPypi
, cryptography
, ecdsa
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "PyJWT"; pname = "PyJWT";
@ -11,18 +17,17 @@ buildPythonPackage rec {
sha256 = "a5c70a06e1f33d81ef25eecd50d50bd30e34de1ca8b2b9fa3fe0daaabcf69bf7"; sha256 = "a5c70a06e1f33d81ef25eecd50d50bd30e34de1ca8b2b9fa3fe0daaabcf69bf7";
}; };
propagatedBuildInputs = [ cryptography ecdsa ]; propagatedBuildInputs = [
cryptography
ecdsa
];
checkInputs = [ pytestrunner pytestcov pytest ]; checkInputs = [
pytest-cov
pytestCheckHook
];
postPatch = '' pythonImportsCheck = [ "jwt" ];
substituteInPlace setup.py --replace "pytest>=4.0.1,<5.0.0" "pytest"
'';
# ecdsa changed internal behavior
checkPhase = ''
pytest tests -k 'not ec_verify_should_return_false_if_signature_invalid'
'';
meta = with lib; { meta = with lib; {
description = "JSON Web Token implementation in Python"; description = "JSON Web Token implementation in Python";