1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, ecdsa 5, rsa 6, pycrypto 7, pyasn1 8, pycryptodome 9, cryptography 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "python-jose"; 15 version = "3.3.0"; 16 17 src = fetchFromGitHub { 18 owner = "mpdavis"; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM="; 22 }; 23 24 propagatedBuildInputs = [ 25 cryptography 26 ecdsa 27 pyasn1 28 pycrypto 29 pycryptodome 30 rsa 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace setup.py \ 39 --replace '"pytest-runner",' "" 40 ''; 41 42 pythonImportsCheck = [ "jose" ]; 43 44 meta = with lib; { 45 homepage = "https://github.com/mpdavis/python-jose"; 46 description = "A JOSE implementation in Python"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ jhhuh ]; 49 }; 50}