From patchwork Sat Jun 5 01:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29934 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 247BA27BC81; Sat, 5 Jun 2021 02:48:20 +0100 (BST) 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 3AFD227BC91 for ; Sat, 5 Jun 2021 02:48:14 +0100 (BST) Received: from localhost ([::1]:32936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ4-0003YG-Tr for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPv-0003P4-5J for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0005T2-UT for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpLPu-0007qI-TL for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Jun 2021 01:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48842 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48842@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48842-submit@debbugs.gnu.org id=B48842.162285765430072 (code B ref 48842); Sat, 05 Jun 2021 01:48:02 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:34 +0000 Received: from localhost ([127.0.0.1]:48114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPS-0007ox-0h for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]:48419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPP-0007o2-W7 for 48842@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:32 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CD98E240026 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857645; bh=f5Ax5Yh66fEz3tnbzWQrFXybGroD+/xEjhQ4057KiWs=; h=From:To:Cc:Subject:Date:From; b=NpLOMJ5IBmnWR0/8w3WxaCQEcv9Q6lxwoDMIm9gP03vI3Nt4z885fB8BymSKDjUUs SdtgyuX2tYtCF8MYVt5AmiAXy/RFFXSuinGJwpN49i0W2dfagEeKBk4ov9EYpYX0T9 3ptz+FTN0yS/ktkoTD4L9I3wjzorPzFoodguSGjp5O1tqIjmcpxKeofXejTxU+iK9V 0sfZo51t86Rn/bf7QJSQxTIv1HghUAaetREGeZbBm8Nh5/rNzdlYVJ+GwZLGlJuZut lRFDfUgr9DCzM3iefssw1A46dOC9jQn4iVntFzlw+YR/v3GuOE1DMcOgf23DYKdcOg DZfmF0MbFK0xA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDr2C3fz9rxB; Sat, 5 Jun 2021 03:47:24 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:53 +0000 Message-Id: <20210605014655.18459-4-monego@posteo.net> In-Reply-To: <20210605014655.18459-1-monego@posteo.net> References: <20210605014655.18459-1-monego@posteo.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-markdown-it-py): New variable. --- gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 89717975ee..fd7b1dd5f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7099,6 +7099,57 @@ for the @code{linkify-it-py} project needs.") "This is a Python port of @code{linkify-it}.") (license license:expat))) +(define-public python-markdown-it-py + (package + (name "python-markdown-it-py") + (version "1.1.0") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/executablebooks/markdown-it-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-typing-extensions" + ,python-typing-extensions))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-linkify-it-py" ,python-linkify-it-py) + ("python-psutil" ,python-psutil) + ("python-pytest" ,python-pytest) + ("python-pytest-benchmark" + ,python-pytest-benchmark) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-regressions" + ,python-pytest-regressions))) + (home-page "https://github.com/executablebooks/markdown-it-py") + (synopsis "Python port of markdown-it") + (description + "This is a Python port of @code{markdown-it}, and some of its associated +plugins. Features: + +@itemize +@item Follows the CommonMark spec for baseline parsing. +@item Configurable syntax: Add new rules and even replace existing ones. +@item Pluggable: Adds syntax extensions to extend the parser. +@item Safe by default. +@end itemize") + (license license:expat))) + (define-public python-honcho (package (name "python-honcho")