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