1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pytest-cov-stub, 9 multidict, 10 xmljson, 11}: 12 13buildPythonPackage rec { 14 pname = "latex2mathml"; 15 version = "3.78.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "roniemartinez"; 22 repo = "latex2mathml"; 23 tag = version; 24 hash = "sha256-VhBq6KSiomFPue9yzYhU68gH+MkHovVi8VEEFi3yUZ8="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytest-cov-stub 32 multidict 33 xmljson 34 ]; 35 36 pythonImportsCheck = [ "latex2mathml" ]; 37 38 meta = { 39 description = "Pure Python library for LaTeX to MathML conversion"; 40 homepage = "https://github.com/roniemartinez/latex2mathml"; 41 changelog = "https://github.com/roniemartinez/latex2mathml/releases/tag/${src.tag}"; 42 license = lib.licenses.mit; 43 mainProgram = "latex2mathml"; 44 maintainers = with lib.maintainers; [ sfrijters ]; 45 }; 46}