2020-01-24 16:54:04 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-04-21 14:35:35 +02:00
|
|
|
, pytestCheckHook
|
2020-01-24 16:54:04 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylatexenc";
|
2020-05-12 15:06:27 +02:00
|
|
|
version = "2.4";
|
2020-01-24 16:54:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phfaist";
|
2020-04-21 14:35:35 +02:00
|
|
|
repo = "pylatexenc";
|
2020-01-24 16:54:04 +01:00
|
|
|
rev = "v${version}";
|
2020-05-12 15:06:27 +02:00
|
|
|
sha256 = "0i4frypbv90mjir8bkp03cwkvwhgvc9p3fw6q2jz1dn7fw94v2rv";
|
2020-01-24 16:54:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylatexenc" ];
|
2020-04-21 14:35:35 +02:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-01-24 16:54:04 +01: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 14:35:35 +02:00
|
|
|
downloadPage = "https://www.github.com/phfaist/pylatexenc/releases";
|
2020-01-24 16:54:04 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|