2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylatexenc";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "2.10";
|
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" ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
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
|
|
|
}
|