Merge pull request #122461 from mweinelt/python/pyjwt

This commit is contained in:
Martin Weinelt 2021-05-10 18:31:05 +02:00 committed by GitHub
commit c594f4e1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View File

@ -29,11 +29,6 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = lib.optionals (lib.versionOlder version "2.0") [
# ecdsa changed internal behavior, required if one does 1.7.1 overriding
"ec_verify_should_return_false_if_signature_invalid"
];
pythonImportsCheck = [ "jwt" ];
meta = with lib; {

View File

@ -38,8 +38,17 @@ let
})
# Pinned due to API changes in pyjwt>=2.0
(mkOverride "pyjwt" "1.7.1"
"15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd")
(self: super: {
pyjwt = super.pyjwt.overridePythonAttrs (oldAttrs: rec {
version = "1.7.1";
src = oldAttrs.src.override {
sha256 = "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd";
};
disabledTests = [
"test_ec_verify_should_return_false_if_signature_invalid"
];
});
})
# Pinned due to bug in ring-doorbell 0.7.0
# https://github.com/tchellomello/python-ring-doorbell/issues/240