From patchwork Sun Feb 26 15:31:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Wiktor_=C5=BBelazny?= X-Patchwork-Id: 47381 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E2FF116BBF; Sun, 26 Feb 2023 15:32:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5332016B96 for ; Sun, 26 Feb 2023 15:32:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWJ0O-0005ro-UC; Sun, 26 Feb 2023 10:32:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWJ0M-0005rR-Rt for guix-patches@gnu.org; Sun, 26 Feb 2023 10:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWJ0M-00040o-Ju for guix-patches@gnu.org; Sun, 26 Feb 2023 10:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWJ0M-0003G9-8O for guix-patches@gnu.org; Sun, 26 Feb 2023 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61815] [PATCH 2/2] gnu: Add pandoc-include. References: <20230226152351.22119-1-wz@freeshell.de> In-Reply-To: <20230226152351.22119-1-wz@freeshell.de> Resent-From: Wiktor =?utf-8?q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Feb 2023 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61815 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61815@debbugs.gnu.org Received: via spool by 61815-submit@debbugs.gnu.org id=B61815.167742551812519 (code B ref 61815); Sun, 26 Feb 2023 15:32:02 +0000 Received: (at 61815) by debbugs.gnu.org; 26 Feb 2023 15:31:58 +0000 Received: from localhost ([127.0.0.1]:44834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWJ0I-0003Fr-Jc for submit@debbugs.gnu.org; Sun, 26 Feb 2023 10:31:58 -0500 Received: from freeshell.de ([116.202.128.144]:41070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWJ0H-0003Fd-6Q for 61815@debbugs.gnu.org; Sun, 26 Feb 2023 10:31:57 -0500 Received: from localhost.localdomain (cst-prg-12-119.cust.vodafone.cz [46.135.12.119]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 66B49B3C1F80 for <61815@debbugs.gnu.org>; Sun, 26 Feb 2023 16:31:50 +0100 (CET) From: Wiktor =?utf-8?q?=C5=BBelazny?= Date: Sun, 26 Feb 2023 16:31:38 +0100 Message-Id: <20230226153138.22696-1-wz@freeshell.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/textutils.scm (pandoc-include): New variable. --- gnu/packages/textutils.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index fad790c065..e03ea3d448 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -1551,3 +1551,31 @@ (define-public python-panflute write. It is a pythonic alternative to John MacFarlane's pandocfilters, from which it is heavily inspired.") (license license:bsd-3))) + +(define-public pandoc-include + (package + (name "pandoc-include") + (version "1.2.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pandoc-include" version)) + (sha256 + (base32 + "01nrbzs85mrd7jcflicsz0bmfnzi6wsy0ii262xl01zsabqd7n91")))) + (build-system python-build-system) + (propagated-inputs (list python-natsort python-panflute)) + (home-page "https://github.com/DCsunset/pandoc-include") + (synopsis "Pandoc filter to allow file and header includes") + (description "@code{pandoc-include} extends Pandoc to support: + +@enumerate +@item include as raw blocks +@item indent and dedent included contents +@item partial include +@item code include +@item Unix style pathname +@item recursive include +@item Yaml header merging +@item header include +@end enumerate") + (license license:expat)))