2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylatexenc";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "2.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phfaist";
|
|
|
|
repo = "pylatexenc";
|
|
|
|
rev = "v${version}";
|
2021-04-13 19:44:15 +00:00
|
|
|
hash = "sha256-3Ho04qrmCtmmrR+BUJNbtdCZcK7lXhUGJjm4yfCTUkM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylatexenc" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion";
|
|
|
|
homepage = "https://pylatexenc.readthedocs.io";
|
|
|
|
downloadPage = "https://www.github.com/phfaist/pylatexenc/releases";
|
2020-12-03 08:41:04 +00:00
|
|
|
changelog = "https://pylatexenc.readthedocs.io/en/latest/changes/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|