1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchPypi, 6 poetry-core, 7 pyopenssl, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "josepy"; 14 version = "1.14.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-MIs7+c6CWtTUu6djcs8ZtdwcLOlqnSmPlkKXXmS9E90="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 propagatedBuildInputs = [ 27 pyopenssl 28 cryptography 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "josepy" ]; 34 35 meta = with lib; { 36 changelog = "https://github.com/certbot/josepy/blob/v${version}/CHANGELOG.rst"; 37 description = "JOSE protocol implementation in Python"; 38 mainProgram = "jws"; 39 homepage = "https://github.com/certbot/josepy"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}