From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QFxKLd7XumApHgAAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 03:48:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eCeSKN7XumAMcgAA1q6Kng (envelope-from ) for ; Sat, 05 Jun 2021 01:48:14 +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 7102626023 for ; Sat, 5 Jun 2021 03:48:14 +0200 (CEST) Received: from localhost ([::1]:32900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ5-0003WL-F7 for larch@yhetil.org; Fri, 04 Jun 2021 21:48:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPw-0003Pt-0K for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPv-0005TG-N8 for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpLPv-0007qY-Lp for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Jun 2021 01:48:03 +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.162285765630093 (code B ref 48842); Sat, 05 Jun 2021 01:48:03 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:36 +0000 Received: from localhost ([127.0.0.1]:48119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPU-0007pI-H2 for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:36 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPS-0007oP-6R for 48842@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:35 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 90C10240026 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857648; bh=dy0iyRvhvJZn5du+ecVdEQFJbdbiPKbc6rg7/Zs0ZJg=; h=From:To:Cc:Subject:Date:From; b=YPqEGBWFj0YJYkkDXDBzoVggVKT+8mnrfmcqic6MEXwNNPQDvZFhXVsPOtMrddPgi iOA/csVErPwLWDPFZutcFyVh9ZPVqkVOy+OwoQTbGq3UNaRM6zpMl8vXN7dkDjXCSz MYHWqTKzOmDYkoiK6y6YikoGYOg5JUo04JgltpP0tbiSNvYiiGSa5GKnB3zXZK6I3H 7BechsB3EkmhP8N627thVBmemOYRfm/oV8gkOOqfpQ9Vzp61DosiAJy6X+eL9Olax7 B8p6YLZD9XmCQgMsyjtO8s3SxEtl5KbQBZn2m/uXgvVbu/a4vAXM4L0rib4DQ0TpB5 w/KBnImRmr+VA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDv2VMWz9rxB; Sat, 5 Jun 2021 03:47:27 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:55 +0000 Message-Id: <20210605014655.18459-6-monego@posteo.net> In-Reply-To: <20210605014655.18459-1-monego@posteo.net> References: <20210605014655.18459-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=1622857694; 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=tyHQXOz/y09UZbHagXXKunRL/I5pCTlgNk77QIiF7WQ=; b=BaP3iY+JLXFIilw8L8OQMl1JVtTpS8CDJI9OUhDtrVCIGzJ12svltz9PwG3ksuqBGQzkH8 Y+g6qpy4OWsy55hUlz6b/Z8BGAUn3PhcRHuGyhxb1MlvQ1tHg4oUk5j+05lAcO9ot8wMuU ViTt74OuI9/65jowaZYQl8q8siog7Lk0gI//xKm8UV0Y/q4hG+PtROHbjL0LRW317hGK/Q eOb/PA5j5RH1IZ7JBA/QehTe9Izpu23WfxkG+B85dHmuVxwQww3YECeYG7XNgsghfKkore G85D4x8tj5oSMGDzt8Ial1MAI6wlByFOAxf4DfO+BasN3dBOgsV+QV/yFAi9sA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622857694; a=rsa-sha256; cv=none; b=BV0zZp+pBD4G+Bymu8B3gKmnAmJwNBEC8XSsAhP3F3HxlWjpN+65yRJwk3u9vsChhZcqBp WT7dx+hvuFmDE9MovYB6ijNrEmk/ehMUOJ0do6SirS65CTl/JiutTXZX8QQsRcd5M99oDb cB9MtIUKG+Tv8GLbnGcfiQktUI4km8VHu/q7tMJbdNcbRFERRxO/jjKYFBVIwYQHWdHXnr VN1sak2TmyQtU+74Tm+78JzYJv8xR8VMxQG4uUD0V5xsUVwkRd62hkTdzKrN+yph2lm/kI 6ny0Pit4eJPFnxIGFdiZT3bCSYoQqwR+hC7foW/AvF1ki4sMWSS51x/+womufw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YPqEGBWF; 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: 3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YPqEGBWF; 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: 7102626023 X-Spam-Score: 3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: NY5OPHEsgeXk * gnu/packages/sphinx.scm (python-myst-parser): New variable. --- gnu/packages/sphinx.scm | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 14bc3f5a79..7ec0afae8b 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -44,6 +44,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) @@ -603,6 +604,58 @@ 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 fail with AssertionErrors like these: + ;; E -
+ ;; E +
+ "--ignore" "tests/test_sphinx/test_sphinx_builds.py" + ;; 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 + "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