summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/plasTeX/default.nix
blob: 9857c9282fc6372d5a96de5341669467707ae2f8 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  typing-extensions,
  pillow,
  jinja2,
  unidecode,
}:
buildPythonPackage {
  pname = "plasTeX";
  version = "3.1";
  pyproject = true;

  src = fetchFromGitHub {
    repo = "plastex";
    owner = "plastex";
    rev = "193747318f7ebadd19eaaa1e9996da42a31a2697"; # The same as what is published on PyPi for version 3.1. See <https://github.com/plastex/plastex/issues/386>
    hash = "sha256-Muuin7n0aPOZwlUaB32pONy5eyIjtPNb4On5gC9wOcQ=";
  };

  build-system = [ setuptools ];

  dependencies = [
    typing-extensions
    pillow
    jinja2
    unidecode
  ];

  meta = {
    description = "Python package to convert LaTeX markup to DOM";
    homepage = "https://plastex.github.io/plastex/";
    maintainers = with lib.maintainers; [ niklashh ];
    license = lib.licenses.asl20;
  };
}