Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 55 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, poetry-core 6, setuptools 7, pytestCheckHook 8, multidict 9, xmljson 10}: 11 12buildPythonPackage rec { 13 pname = "latex2mathml"; 14 version = "3.75.5"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "roniemartinez"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-ezSksOUvSUqo8MktjKU5ZWhAxtFHwFkSAOJ8rG2jgoU="; 23 }; 24 25 format = "pyproject"; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 setuptools # needs pkg_resources at runtime 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 multidict 38 xmljson 39 ]; 40 41 # Disable code coverage in check phase 42 postPatch = '' 43 sed -i '/--cov/d' pyproject.toml 44 ''; 45 46 pythonImportsCheck = [ "latex2mathml" ]; 47 48 meta = with lib; { 49 description = "Pure Python library for LaTeX to MathML conversion"; 50 homepage = "https://github.com/roniemartinez/latex2mathml"; 51 changelog = "https://github.com/roniemartinez/latex2mathml/releases/tag/${version}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ sfrijters ]; 54 }; 55}