nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 44 lines 769 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, cryptography 5, ecdsa 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pyjwt"; 12 version = "1.7.1"; 13 14 src = fetchPypi { 15 pname = "PyJWT"; 16 inherit version; 17 sha256 = "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96"; 18 }; 19 20 postPatch = '' 21 sed -i '/^addopts/d' setup.cfg 22 ''; 23 24 propagatedBuildInputs = [ 25 cryptography 26 ecdsa 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 disabledTests = [ 34 "test_ec_verify_should_return_false_if_signature_invalid" 35 ]; 36 37 pythonImportsCheck = [ "jwt" ]; 38 39 meta = with lib; { 40 description = "JSON Web Token implementation in Python"; 41 homepage = "https://github.com/jpadilla/pyjwt"; 42 license = licenses.mit; 43 }; 44}