From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IJUwOKsEvmDaCQEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 13:36:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4KiEM6sEvmCvWgAA1q6Kng (envelope-from ) for ; Mon, 07 Jun 2021 11:36:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD76D17BE7 for ; Mon, 7 Jun 2021 13:36:10 +0200 (CEST) Received: from localhost ([::1]:55552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqDY9-0003BO-Pe for larch@yhetil.org; 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623065771; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nsXgan/RrBWW1575WHj9szM02OVpG6d4FfDDjQX6Tko=; b=p2CAj9KF7Cc8E621rySQe/wfjW9dcadN1lUL7RU2tXZpoKADLCSGrnS27crVH22jIWHU6w hE8txfYEDgM/Tb8jlpDK33+MBzZ0ig5F9ZLkjBer4Y5686fw1ElRrQUltVmUhADSmgS3LD J0ArdGgWQeGzHmw4FD3ZDtl5YmBDxM0OTGDawfb4NHNgyCsbVuH+aj/nzmo3TpEncyprH7 wvFP5OzT5cNOz7kDAdiUpRhX9xOvefc+mhKPr5kzvJPidnGDaAsiUileS5HgtiVu9K8Grw rWxxgM1dQI320ItlBi0uyREJBk1kgajR91dkeiEGMJiFmKwdwTsZsUWqG7+Txw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623065771; a=rsa-sha256; cv=none; b=hjZktXvae2wlr/X1B0MEk2Mul1GGsZZWuHhQhfzqzZyAcekzmi12KTVD+iT4jYtZoTjxwt u8rLPTD7kJM1WZWaw5mJXY60MXfLRKJbby6yJZ2i+bycXPUbzFmWh23hhQZHntFEHvwgpD WC39xXw1i7nEg+m/I9dr1mvivwBIMtk/hXmHHA7eScKZCkTkzSWcUaD9Du6E9kL6CiVBmh f74cA+F+or/dBrB3T7AbDSMRu3Ml281NNwEmIgY9VLMzMxRKRSVVplKa1G239WlXG3Hqek +5AMY1Dl0sP2GZK3qpTByzN3a1ph+nB7upeWeVNAejVVeQZRDERFhkqfzapIDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YT+h+8Ai; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YT+h+8Ai; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CD76D17BE7 X-Spam-Score: 5.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: GCjsbSNzFawH * 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") -- 2.31.1