1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "pylatexenc";
9 version = "2.10";
10
11 src = fetchFromGitHub {
12 owner = "phfaist";
13 repo = "pylatexenc";
14 rev = "v${version}";
15 hash = "sha256-3Ho04qrmCtmmrR+BUJNbtdCZcK7lXhUGJjm4yfCTUkM=";
16 };
17
18 pythonImportsCheck = [ "pylatexenc" ];
19 nativeCheckInputs = [ pytestCheckHook ];
20
21 meta = with lib; {
22 description = "Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion";
23 homepage = "https://pylatexenc.readthedocs.io";
24 downloadPage = "https://www.github.com/phfaist/pylatexenc/releases";
25 changelog = "https://pylatexenc.readthedocs.io/en/latest/changes/";
26 license = licenses.mit;
27 maintainers = with maintainers; [ drewrisinger ];
28 };
29}