2025-06-02 05:56:19 +02:00

47 lines
985 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pytest-cov-stub,
multidict,
xmljson,
}:
buildPythonPackage rec {
pname = "latex2mathml";
version = "3.78.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "roniemartinez";
repo = "latex2mathml";
tag = version;
hash = "sha256-FB1VM2z9y17q+6/wv4oTrhe/rD2QzdAc0VMbFmcrIAw=";
};
build-system = [ poetry-core ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
multidict
xmljson
];
pythonImportsCheck = [ "latex2mathml" ];
meta = {
description = "Pure Python library for LaTeX to MathML conversion";
homepage = "https://github.com/roniemartinez/latex2mathml";
changelog = "https://github.com/roniemartinez/latex2mathml/releases/tag/${src.tag}";
license = lib.licenses.mit;
mainProgram = "latex2mathml";
maintainers = with lib.maintainers; [ sfrijters ];
};
}