From patchwork Mon Jun 7 11:20:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 30001 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 5486927BC81; Mon, 7 Jun 2021 12:36:10 +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 EB80D27BC78 for ; Mon, 7 Jun 2021 12:36:09 +0100 (BST) Received: from localhost ([::1]:55552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqDY9-0003BO-2j for patchwork@mira.cbaines.net; Mon, 07 Jun 2021 07:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqDKY-0000v1-MS for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqDKW-0006V5-AC for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqDKW-0002KV-6I for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 11:22:04 +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.16230648998878 (code B ref 48842); Mon, 07 Jun 2021 11:22:04 +0000 Received: (at 48842) by debbugs.gnu.org; 7 Jun 2021 11:21:39 +0000 Received: from localhost ([127.0.0.1]:54571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqDK7-0002J8-B7 for submit@debbugs.gnu.org; Mon, 07 Jun 2021 07:21:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:52759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqDK2-0002Hv-DY for 48842@debbugs.gnu.org; Mon, 07 Jun 2021 07:21:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DFD0924002C for <48842@debbugs.gnu.org>; Mon, 7 Jun 2021 13:21:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623064888; bh=2DY5T39e7rJWcroMq84M8PS6zUW+S2+HB+IZH5r3ww8=; h=From:To:Cc:Subject:Date:From; b=YT+h+8AiIR3y3Ycn8FQ6ChBQcSGSKURTsWl/+6JK55E8R2nwyMMHLXgRKAbXn5PK1 JsA3iHxBTgDYYlmutqJhHzCTYpBVj0Mv2ENZjv2/DXILuq4RM+EIBWvgAcRZcDwn1Q ypwC92uffxuW6mnALwhRSjZ/tkwq9g1oVIo0J0iQqylpQT8zqdgIkkl3Cd+HItvrNU 4Oo5zGzLNIdHvPaDapsKIjcTp0IWUDG/icB18DJg8sSL+t7evcvQU6ngawoXGpvzIj O3ySfOnuuz3QD3nwr8bIrVQNO7K4AYT39Xx19xe+L28CmwCNLq51MSxouMCjCRnXxM T6rRsJE2vOj3w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fz9tH4qQ9z9rxN; Mon, 7 Jun 2021 13:21:27 +0200 (CEST) From: Vinicius Monego Date: Mon, 7 Jun 2021 11:20:51 +0000 Message-Id: <20210607112051.214681-7-monego@posteo.net> In-Reply-To: <20210607112051.214681-1-monego@posteo.net> References: <20210607112051.214681-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/sphinx.scm (python-myst-parser): New variable. --- Changed synopsis and description, and clarified the comment about why tests are skipped. gnu/packages/sphinx.scm | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 428a701d87..eefba27f00 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -616,6 +617,60 @@ and several other projects.") (define-public python2-sphinx-rtd-theme (package-with-python2 python-sphinx-rtd-theme)) +(define-public python-myst-parser + (package + (name "python-myst-parser") + (version "0.14.0") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/executablebooks/myst-parser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s5lmhj1rb94na646klivzvzzhzpy03m5q9ixif9vg14yin3gm7s")))) + (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" + ;; Tests in this file fail with AssertionErrors related + ;; to adding divs to the HTML tags: + ;; E -
+ ;; E +
+ "--ignore" "tests/test_sphinx/test_sphinx_builds.py" + ;; Another AssertionError: + ;; E - + ;; E + + "-k" "not test_sphinx_directives"))))))) + (propagated-inputs + `(("python-docutils" ,python-docutils) + ("python-jinja2" ,python-jinja2) + ("python-markdown-it-py" ,python-markdown-it-py) + ("python-mdit-py-plugins" + ,python-mdit-py-plugins) + ("python-pyyaml" ,python-pyyaml) + ("python-sphinx" ,python-sphinx))) + (native-inputs + `(("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-regressions" + ,python-pytest-regressions))) + (home-page "https://github.com/executablebooks/MyST-Parser") + (synopsis "Extended CommonMark-compliant parser") + (description + "MyST-parser is an extended CommonMark-compliant parser, with bridges to +docutils and Sphinx.") + (license license:expat))) + (define-public python-breathe (package (name "python-breathe")