1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 six, 6 pytest, 7}: 8 9buildPythonPackage rec { 10 pname = "latexcodec"; 11 version = "3.0.1"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-54ppEc1y+d7DUDHG7CNYTeaEK/vEYQqWeIaNFM37A1c="; 17 }; 18 19 propagatedBuildInputs = [ six ]; 20 21 nativeCheckInputs = [ pytest ]; 22 23 checkPhase = '' 24 pytest 25 ''; 26 27 meta = with lib; { 28 homepage = "https://github.com/mcmtroffaes/latexcodec"; 29 description = "Lexer and codec to work with LaTeX code in Python"; 30 license = licenses.mit; 31 }; 32}