Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / latex2mathml / default.nix
blob4ff8ba6df59bd7933282508e92d308acca27e995
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , pytestCheckHook
7 , multidict
8 , xmljson
9 }:
11 buildPythonPackage rec {
12   pname = "latex2mathml";
13   version = "3.76.0";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "roniemartinez";
19     repo = pname;
20     rev = version;
21     hash = "sha256-CoWXWgu1baM5v7OC+OlRHZB0NkPue4qFzylJk4Xq2e4=";
22   };
24   format = "pyproject";
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32     multidict
33     xmljson
34   ];
36   # Disable code coverage in check phase
37   postPatch = ''
38     sed -i '/--cov/d' pyproject.toml
39   '';
41   pythonImportsCheck = [ "latex2mathml" ];
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   };