1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "pylatexenc"; 10 version = "2.10"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "phfaist"; 15 repo = "pylatexenc"; 16 rev = "v${version}"; 17 hash = "sha256-3Ho04qrmCtmmrR+BUJNbtdCZcK7lXhUGJjm4yfCTUkM="; 18 }; 19 20 pythonImportsCheck = [ "pylatexenc" ]; 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 meta = with lib; { 24 description = "Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion"; 25 homepage = "https://pylatexenc.readthedocs.io"; 26 downloadPage = "https://www.github.com/phfaist/pylatexenc/releases"; 27 changelog = "https://pylatexenc.readthedocs.io/en/latest/changes/"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ drewrisinger ]; 30 }; 31}