about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix
blob: a0ce0f96b4377cdcffd3e9f245bfebb43ae61d70 (plain) (blame)
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
{ buildPythonApplication
, fetchFromGitHub
, lib
, natsort
, panflute
}:

buildPythonApplication rec {
  pname = "pandoc-include";
  version = "1.2.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "DCsunset";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-kuxud7m+sWcNqE8A+Fwb8ATgiUwxQvHeYBTyw1UzX4U=";
  };

  propagatedBuildInputs = [ natsort panflute ];

  pythonImportsCheck = [ "pandoc_include.main" ];

  meta = with lib; {
    description = "Pandoc filter to allow file and header includes";
    homepage = "https://github.com/DCsunset/pandoc-include";
    license = licenses.mit;
    maintainers = with maintainers; [ ppenguin ];
  };
}