1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 panflute,
6 pytestCheckHook,
7 pandoc,
8 hatchling,
9 hatch-vcs,
10}:
11
12buildPythonPackage rec {
13 pname = "pandoc-latex-environment";
14 version = "1.2.1.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "chdemko";
19 repo = "pandoc-latex-environment";
20 tag = version;
21 hash = "sha256-uyOqw8YnTljgXkwZOXTXAsnobVSV65EVicohREBNMCY=";
22 };
23
24 build-system = [
25 hatchling
26 hatch-vcs
27 ];
28
29 dependencies = [ panflute ];
30
31 pythonImportsCheck = [ "pandoc_latex_environment" ];
32 nativeCheckInputs = [
33 pytestCheckHook
34 pandoc
35 ];
36
37 meta = {
38 description = "Pandoc filter for adding LaTeX environment on specific div";
39 homepage = "https://github.com/chdemko/pandoc-latex-environment";
40 license = lib.licenses.bsd3;
41 maintainers = with lib.maintainers; [ sigmanificient ];
42 };
43}