diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/pandoc-include/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/pandoc-include/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix b/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix new file mode 100644 index 000000000000..a0ce0f96b437 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix @@ -0,0 +1,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 ]; + }; +} |