1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 typing-extensions,
11 pillow,
12 jinja2,
13 unidecode,
14}:
15buildPythonPackage {
16 pname = "plasTeX";
17 version = "3.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 repo = "plastex";
22 owner = "plastex";
23 rev = "193747318f7ebadd19eaaa1e9996da42a31a2697"; # The same as what is published on PyPi for version 3.1. See <https://github.com/plastex/plastex/issues/386>
24 hash = "sha256-Muuin7n0aPOZwlUaB32pONy5eyIjtPNb4On5gC9wOcQ=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 typing-extensions
31 pillow
32 jinja2
33 unidecode
34 ];
35
36 meta = {
37 description = "Python package to convert LaTeX markup to DOM";
38 homepage = "https://plastex.github.io/plastex/";
39 maintainers = with lib.maintainers; [ niklashh ];
40 license = lib.licenses.asl20;
41 };
42}