{ lib, buildPythonPackage, fetchPypi, six, pytest, }: buildPythonPackage rec { pname = "latexcodec"; version = "3.0.1"; format = "setuptools"; src = fetchPypi { inherit pname version; hash = "sha256-54ppEc1y+d7DUDHG7CNYTeaEK/vEYQqWeIaNFM37A1c="; }; propagatedBuildInputs = [ six ]; nativeCheckInputs = [ pytest ]; checkPhase = '' pytest ''; meta = with lib; { homepage = "https://github.com/mcmtroffaes/latexcodec"; description = "Lexer and codec to work with LaTeX code in Python"; license = licenses.mit; }; }