aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/latexcodec/default.nix
blob: 3514d5da9a23afa29e90a6c1593fc1bde240c3be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, buildPythonPackage, fetchPypi, six, pytest }:

buildPythonPackage rec {
  pname = "latexcodec";
  version = "2.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0pyzhidpnc3q3rh9d5hxhzv99rl5limyyrll7xcyssci92fn8gyd";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ pytest ];

  checkPhase = ''
    pytest
  '';

  meta = {
    homepage = "https://github.com/mcmtroffaes/latexcodec";
    description = "Lexer and codec to work with LaTeX code in Python";
    license = stdenv.lib.licenses.mit;
  };

}