From patchwork Thu Feb 11 21:36:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ron Nazarov X-Patchwork-Id: 27003 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 45A7827BC27; Thu, 11 Feb 2021 22:17:59 +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_H4,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 68A9227BC26 for ; Thu, 11 Feb 2021 22:17:58 +0000 (GMT) Received: from localhost ([::1]:45246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAKHd-0004iX-DO for patchwork@mira.cbaines.net; Thu, 11 Feb 2021 17:17:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAJni-0003X2-83 for guix-patches@gnu.org; Thu, 11 Feb 2021 16:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAJni-0007il-07 for guix-patches@gnu.org; Thu, 11 Feb 2021 16:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAJnh-0007Uc-Tw for guix-patches@gnu.org; Thu, 11 Feb 2021 16:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46449] [PATCH] gnu: Add python-mistletoe. Resent-From: Ron Nazarov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46449@debbugs.gnu.org Cc: Ron Nazarov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161307997128744 (code B ref -1); Thu, 11 Feb 2021 21:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2021 21:46:11 +0000 Received: from localhost ([127.0.0.1]:59476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAJmt-0007TY-45 for submit@debbugs.gnu.org; Thu, 11 Feb 2021 16:46:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:45194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAJhm-0007LG-Ir for submit@debbugs.gnu.org; Thu, 11 Feb 2021 16:40:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAJhm-0002W4-9Z for guix-patches@gnu.org; Thu, 11 Feb 2021 16:40:54 -0500 Received: from knopi.disroot.org ([178.21.23.139]:54618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAJhj-0004oC-Ph for guix-patches@gnu.org; Thu, 11 Feb 2021 16:40:54 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7A4C750E3C; Thu, 11 Feb 2021 22:40:48 +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 UTF8SMTP id uLz_e6PaaLos; Thu, 11 Feb 2021 22:40:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1613079627; bh=vqZzKJqf8FzlL6Jb7q+MstJT8d29nPs/2ciRJXzaa9s=; h=From:To:Cc:Subject:Date; b=i3r9NAf/a6vX1O9BxX8wL7Y59GDTGT0WICgkYHtCnXueRIvk9fbSfESbH9xyjAH5B IWveLWogJLIlI6HjB6/4RfWxTnFz1kDYjCpbsJVA11gYSxghdKz3R+XicoC0uNp95g iWuSbiLb+wt8ESoEZgAKcYfAerpkXpSe2BRcx2R2N2Sjsy8tSortQfE9lnAzpbuXX3 4dnfi6u1/b/oe692UOVeogfEPFucsnin9RKeu6q1zh5jCtfSpC7HvlqbGzl8aw/unU onbq15gt4W7oWLLGBLXW3bkrHDnpicCA1oR08UTTa2lHn4lGQT1cTjO6ytM41IFGJ/ mgPY8lRaR55zA== Date: Thu, 11 Feb 2021 21:36:54 +0000 Message-Id: <20210211213654.117065-1-noisytoot@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=noisytoot@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 11 Feb 2021 16:46:10 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 11 Feb 2021 17:17:07 -0500 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 | 39 ++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 783812eb03..69a2f29fcb 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. ;;; @@ -23745,18 +23746,42 @@ Application Programming Interface based on the Open Inventor 2.1 API.") (name "python-crayons") (version "0.4.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "crayons" version)) - (sha256 - (base32 - "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx")))) + (origin + (method url-fetch) + (uri (pypi-uri "crayons" version)) + (sha256 + (base32 + "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx")))) (build-system python-build-system) (propagated-inputs - `(("python-colorama" ,python-colorama))) + `(("python-colorama" ,python-colorama))) (home-page "https://github.com/MasterOdin/crayons") (synopsis "TextUI colors for Python") (description "This package gives you colored strings for the terminal. 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 + "A CommonMark-compliant Markdown parser +that supports easy definitions of custom tokens. +Parsing Markdown into an abstract syntax tree also allows mistletoe +to swap out renderers for different output formats, +without touching any of the core components.") + (license license:expat)))