mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
Add pandoc-include (#164552)
Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com>
This commit is contained in:
parent
389143bd7a
commit
faefa9212c
@ -9944,6 +9944,12 @@
|
||||
fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0";
|
||||
}];
|
||||
};
|
||||
ppenguin = {
|
||||
name = "Jeroen Versteeg";
|
||||
email = "hieronymusv@gmail.com";
|
||||
github = "ppenguin";
|
||||
githubId = 17690377;
|
||||
};
|
||||
ppom = {
|
||||
name = "Paco Pompeani";
|
||||
email = "paco@ecomail.io";
|
||||
|
30
pkgs/tools/misc/pandoc-include/default.nix
Normal file
30
pkgs/tools/misc/pandoc-include/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -8383,6 +8383,8 @@ with pkgs;
|
||||
|
||||
pandoc-imagine = python3Packages.callPackage ../tools/misc/pandoc-imagine { };
|
||||
|
||||
pandoc-include = python3Packages.callPackage ../tools/misc/pandoc-include { };
|
||||
|
||||
pandoc-drawio-filter = python3Packages.callPackage ../tools/misc/pandoc-drawio-filter { };
|
||||
|
||||
pandoc-plantuml-filter = python3Packages.callPackage ../tools/misc/pandoc-plantuml-filter { };
|
||||
|
Loading…
Reference in New Issue
Block a user