From patchwork Fri Mar 5 19:00:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ron Nazarov X-Patchwork-Id: 27461 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 BBEAE27BC50; Fri, 5 Mar 2021 19:06:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 30C6027BC4F for ; Fri, 5 Mar 2021 19:06:27 +0000 (GMT) Received: from localhost ([::1]:52836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIFmM-0002O5-BM for patchwork@mira.cbaines.net; Fri, 05 Mar 2021 14:06:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIFlz-0002C3-3q for guix-patches@gnu.org; Fri, 05 Mar 2021 14:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52129) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIFly-0006XY-DV for guix-patches@gnu.org; Fri, 05 Mar 2021 14:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIFly-0001W5-73 for guix-patches@gnu.org; Fri, 05 Mar 2021 14:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46449] [PATCH] gnu: Add python-mistletoe. References: <20210211213654.117065-1-noisytoot@disroot.org> In-Reply-To: <20210211213654.117065-1-noisytoot@disroot.org> Resent-From: Ron Nazarov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Mar 2021 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46449@debbugs.gnu.org Cc: Ron Nazarov Received: via spool by 46449-submit@debbugs.gnu.org id=B46449.16149711475771 (code B ref 46449); Fri, 05 Mar 2021 19:06:02 +0000 Received: (at 46449) by debbugs.gnu.org; 5 Mar 2021 19:05:47 +0000 Received: from localhost ([127.0.0.1]:35441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIFli-0001Uw-6T for submit@debbugs.gnu.org; Fri, 05 Mar 2021 14:05:46 -0500 Received: from knopi.disroot.org ([178.21.23.139]:46538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIFgs-0001Df-U7 for 46449@debbugs.gnu.org; Fri, 05 Mar 2021 14:00:48 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 61E5A50E98; Fri, 5 Mar 2021 20:00:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DAiLcW2rKGtV; Fri, 5 Mar 2021 20:00:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1614970842; bh=I2M2I3gCUqAZTsQlarcScwfS40caMsYSUDVoKG1LC8k=; h=From:To:Cc:Subject:Date; b=GK9f5TtNtZQlsI/eKQ7VsM0+oTn0na5g3T85Vp1jUOz9x5/ATzOW40aMa3d/6Sckw jILebDIXorzgdd8e9AbXr+NYWnr5I0yWcYt5n6NyD9YQUDREigPgPGOqn4fhgkg4kp qqfwtHfW1Ya9QyZzDauDmsxtGgwLGgqBxJGc66um1g5zX01u00N11DTZgLdGzVf6oq O9n4c3GnvecfHL/2izDGP/dl7Jt5tidX+PCpomWcHJDiGl2nxqh40Qk2P59NWDd9z8 cif7BuO4NewLSD6RGVlPmGJR/CKHXTgbEXNX2ZFak9cMQpBqR6c/FRAVAtji8/O2ZF i28mTSWiDktfg== Date: Fri, 5 Mar 2021 19:00:12 +0000 Message-Id: <20210305190012.139489-1-noisytoot@disroot.org> Mime-Version: 1.0 X-Mailman-Approved-At: Fri, 05 Mar 2021 14:05:45 -0500 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" Reply-to: Ron Nazarov X-ACL-Warn: , Ron Nazarov via Guix-patches X-Patchwork-Original-From: Ron Nazarov via Guix-patches via From: Ron Nazarov X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-mistletoe): New variable. --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 783812eb03..91d4e343f7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -96,6 +96,7 @@ ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021 Morgan Smith ;;; Copyright © 2020 EuAndreh +;;; Copyright © 2021 Noisytoot ;;; ;;; This file is part of GNU Guix. ;;; @@ -23760,3 +23761,24 @@ Application Programming Interface based on the Open Inventor 2.1 API.") Crayons automatically wraps a given string in the foreground color and restores the original state after the string is printed.") (license license:expat))) + +(define-public python-mistletoe + (package + (name "python-mistletoe") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mistletoe" version)) + (sha256 + (base32 "18z6hqfnfjqnrcgfgl5pkj9ggf9yx0yyy94azcn1qf7hqn6g3l14")))) + (build-system python-build-system) + (home-page "https://github.com/miyuchina/mistletoe") + (synopsis "Fast, extensible Markdown parser in pure Python") + (description + "The @code{mistletoe} Markdown parser is a CommonMark-compliant Markdown parser +that supports definitions of custom tokens. +Parsing Markdown into an abstract syntax tree also allows @code{mistletoe} +to swap out renderers for different output formats, +without touching any of the core components.") + (license license:expat)))