2020-01-24 15:54:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-04-21 12:35:35 +00:00
|
|
|
, pytestCheckHook
|
2020-01-24 15:54:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylatexenc";
|
2021-04-06 15:08:07 +00:00
|
|
|
version = "2.10";
|
2020-01-24 15:54:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phfaist";
|
2020-04-21 12:35:35 +00:00
|
|
|
repo = "pylatexenc";
|
2020-01-24 15:54:04 +00:00
|
|
|
rev = "v${version}";
|
2021-04-06 15:08:07 +00:00
|
|
|
hash = "sha256-3Ho04qrmCtmmrR+BUJNbtdCZcK7lXhUGJjm4yfCTUkM=";
|
2020-01-24 15:54:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylatexenc" ];
|
2020-04-21 12:35:35 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-01-24 15:54:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion";
|
|
|
|
homepage = "https://pylatexenc.readthedocs.io";
|
2020-04-21 12:35:35 +00:00
|
|
|
downloadPage = "https://www.github.com/phfaist/pylatexenc/releases";
|
2020-11-04 17:28:56 +00:00
|
|
|
changelog = "https://pylatexenc.readthedocs.io/en/latest/changes/";
|
2020-01-24 15:54:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
2020-08-13 13:47:01 +00:00
|
|
|
}
|