pythonPackages.pylatexenc: init at 2.1

Latex converter for Python.
Check dependency of qiskit.
This commit is contained in:
Drew Risinger 2020-01-24 10:54:04 -05:00 committed by Jon
parent b3a3d88c20
commit a26f334e21
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
}:
buildPythonPackage rec {
pname = "pylatexenc";
version = "2.1";
src = fetchFromGitHub {
owner = "phfaist";
repo = pname;
rev = "v${version}";
sha256 = "0wnl00y5dl56aw9j4y21kqapraaravbycwfxdmjsbgl11nk4llx9";
};
pythonImportsCheck = [ "pylatexenc" ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
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";
license = licenses.mit;
maintainers = with maintainers; [ drewrisinger ];
};
}

View file

@ -3084,6 +3084,8 @@ in {
pylama = callPackage ../development/python-modules/pylama { };
pylatexenc = callPackage ../development/python-modules/pylatexenc { };
pymbolic = callPackage ../development/python-modules/pymbolic { };
pymediainfo = callPackage ../development/python-modules/pymediainfo { };