1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, poetry-core 6, pytestCheckHook 7, multidict 8, xmljson 9}: 10 11buildPythonPackage rec { 12 pname = "latex2mathml"; 13 version = "3.76.0"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "roniemartinez"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-CoWXWgu1baM5v7OC+OlRHZB0NkPue4qFzylJk4Xq2e4="; 22 }; 23 24 format = "pyproject"; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 multidict 33 xmljson 34 ]; 35 36 # Disable code coverage in check phase 37 postPatch = '' 38 sed -i '/--cov/d' pyproject.toml 39 ''; 40 41 pythonImportsCheck = [ "latex2mathml" ]; 42 43 meta = with lib; { 44 description = "Pure Python library for LaTeX to MathML conversion"; 45 homepage = "https://github.com/roniemartinez/latex2mathml"; 46 changelog = "https://github.com/roniemartinez/latex2mathml/releases/tag/${version}"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ sfrijters ]; 49 }; 50}