1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 six,
6 pytest,
7}:
8
9buildPythonPackage rec {
10 pname = "latexcodec";
11 version = "3.0.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-kX3F/iQnYswZ2WPmVItC1joRgCjN0zYdYjl+O2OLa8U=";
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}