1{ lib 2, fetchPypi 3, buildPythonPackage 4, cryptography 5, pyopenssl 6, setuptools 7, mock 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "josepy"; 13 version = "1.10.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "e9bcaf605411cadaec04841ae2d5f77ebb178b7b6df7c9aed1d97399ac18685b"; 18 }; 19 20 postPatch = '' 21 # remove coverage flags 22 sed -i '/addopts/d' pytest.ini 23 sed -i '/flake8-ignore/d' pytest.ini 24 ''; 25 26 propagatedBuildInputs = [ 27 pyopenssl 28 cryptography 29 setuptools 30 ]; 31 32 checkInputs = [ 33 mock 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 description = "JOSE protocol implementation in Python"; 39 homepage = "https://github.com/jezdez/josepy"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ ]; 42 }; 43} 44