From patchwork Sat Jun 5 01:46:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29932 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 54C6B27BC83; Sat, 5 Jun 2021 02:48:16 +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 8433027BC85 for ; Sat, 5 Jun 2021 02:48:10 +0100 (BST) Received: from localhost ([::1]:60982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ1-0003PQ-GG for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0003Ob-A4 for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0005RZ-21 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 1lpLPt-0007pw-NA for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir. References: <20210605014517.18212-1-monego@posteo.net> In-Reply-To: <20210605014517.18212-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Jun 2021 01:48:01 +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.162285764830025 (code B ref 48842); Sat, 05 Jun 2021 01:48:01 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:28 +0000 Received: from localhost ([127.0.0.1]:48104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPM-0007oC-6U for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPK-0007nv-Ou for 48842@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:27 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 230792400E5 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857641; bh=H+oAqebggxf5p7kFoI8LQjP02wlSD5LUyQaho8s3ADU=; h=From:To:Cc:Subject:Date:From; b=MRhiGT69CsWxLO5BiUh48In6W6nrvZQA6g3Yp4xLuQ8mvgEMgTwDnh3vX3K5j4KDS YnZzsaKg3+RvE9mQzXTIKCEFPGkOr6LcEQMlt3OM9Tl1U0iAEjWfhGt8YRriW5xINn 0nbN+UAnGL3ZZBxUoIxGzxv4KaCWCY4zCHTIyDfMGdH+oD6UwW+r6EzTY2K/n0lMDY iH3Lx/D4VJjWgKERiMNGkCLKFsQNe9Gc2Mj3gDP2uGZSCwxd0XTZ9swzpDqqyunYHu wjMLwYwNYLvARwr77dMm6El3uQgR/GruOPe1Bp2oCqpU6mRS0NZ35Bw01iIxkqnS/B RGRmF87VpUQQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDl39y0z9rxB; Sat, 5 Jun 2021 03:47:18 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:50 +0000 Message-Id: <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-check.scm (python-pytest-datadir): New variable. --- gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 1206dda5c4..abcbb6d805 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -882,6 +882,36 @@ framework.") for the @code{pytest} framework.") (license license:expat))) +(define-public python-pytest-datadir + (package + (name "python-pytest-datadir") + (version "1.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-datadir" version)) + (sha256 + (base32 "066bg6wlzgq2pqnjp73dfrcmk8951xw3aqcxa3p1axgqimrixbyk")))) + (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-pathlib2" ,python-pathlib2))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/gabrielcnr/pytest-datadir") + (synopsis "Pytest plugin for test data directories and files") + (description + "Pytest plugin for test data directories and files.") + (license license:expat))) + (define-public python-pytest-benchmark (package (name "python-pytest-benchmark") From patchwork Sat Jun 5 01:46: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: 29933 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 59EB027BC78; Sat, 5 Jun 2021 02:48:17 +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 6EB2627BC84 for ; Sat, 5 Jun 2021 02:48:10 +0100 (BST) Received: from localhost ([::1]:60980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ1-0003PM-G5 for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0003Oc-CE for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0005Rd-4t 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-0007q3-3T for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions. 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.162285765030044 (code B ref 48842); Sat, 05 Jun 2021 01:48:02 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:30 +0000 Received: from localhost ([127.0.0.1]:48108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPO-0007oW-Dy for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:30 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPL-0007nx-WF for 48842@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5ACA72400E5 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857642; bh=woUFfJXEzvjLsWfeyRBVjHnbrvD/68/oPj4CdR9T9Lw=; h=From:To:Cc:Subject:Date:From; b=mbc0FFx0KfUkLD78TX7Icd5UW7UFLZY24r9KPx5pElxDdsWo5YDcfa3lN/ypvdNm4 qzS62N3lOFwa6J+5DF0l0Fcds2Kqj2pn5em4I8k7u9qf2mlULAZV6Gk42ipvEzuAD1 ovZHuYgnQpwm0p+OorqCDalkPhPmKbeWtjRFXNrdLkiXrj/oVuesXar+Ah79Slzi5A 2/eKRAQ5MSSbANIN4OjCCoV9G3d4lqS9Fzc9FvkX4sC21A6eFKckQGauNhYjKnUrPV UTZMtDGr/nJGNkLvtYOrRA42cHUcS9frv1QOwx7rSXTKQxSr05AjaOSTrhuPfRZjSf Lmr5BQ/XW4nvg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDn0sMSz9rxB; Sat, 5 Jun 2021 03:47:20 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:51 +0000 Message-Id: <20210605014655.18459-2-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-check.scm (python-pytest-regressions): New variable. --- gnu/packages/python-check.scm | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index abcbb6d805..19e9766229 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -35,9 +35,11 @@ #:use-module (gnu packages django) #:use-module (gnu packages openstack) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages sphinx) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -912,6 +914,47 @@ for the @code{pytest} framework.") "Pytest plugin for test data directories and files.") (license license:expat))) +(define-public python-pytest-regressions + (package + (name "python-pytest-regressions") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-regressions" version)) + (sha256 + (base32 "05jpsvv8rj8i4x24fphpnar5dl4s6d6bw6ikjk5d8v96rdviz9qm")))) + (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" + ;; DeprecrationWarning. + "-k" "not test_image_regression"))))))) + (propagated-inputs + `(("python-pytest-datadir" ,python-pytest-datadir) + ("python-pyyaml" ,python-pyyaml))) + (native-inputs + `(("python-matplotlib" ,python-matplotlib) + ("python-numpy" ,python-numpy) + ("python-pandas" ,python-pandas) + ("python-pillow" ,python-pillow) + ("python-pytest" ,python-pytest) + ("python-restructuredtext-lint" + ,python-restructuredtext-lint) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/ESSS/pytest-regressions") + (synopsis "Easy to use fixtures to write regression tests") + (description + "This Pytest plugin makes it simple to test general data, images, files, +and numeric tables by saving expected data in a data directory that can be +used to verify that future runs produce the same data.") + (license license:expat))) + (define-public python-pytest-benchmark (package (name "python-pytest-benchmark") From patchwork Sat Jun 5 01:46:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29935 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 801E427BC81; Sat, 5 Jun 2021 02:48:21 +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 AFD4727BC78 for ; Sat, 5 Jun 2021 02:48:17 +0100 (BST) Received: from localhost ([::1]:33384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ8-0003r5-Qe for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0003Os-Ot for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPu-0005SU-I6 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-0007qB-GX for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 3/6] gnu: Add python-linkify-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.162285765230052 (code B ref 48842); Sat, 05 Jun 2021 01:48:02 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:32 +0000 Received: from localhost ([127.0.0.1]:48110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPP-0007oe-MV for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPN-0007o0-MV for 48842@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:30 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0B80B2400E5 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857644; bh=CBTt5HE98vEeILMTnefeUTlc9CLFO9G+3zSgKoM+B6A=; h=From:To:Cc:Subject:Date:From; b=JDdhF0QvqMBlIH9l7YqBHaSay/FW686y3Fzlp8abcEtihQ3QFj6IH0tA10HLupgO7 uC9GJ6k40sEwUkopP1gwGICiC4aBWN7NbxGz8xkaoFJM7LgoEjN4IPA8TIQTJlE27Y vfcTQ/IS3sgJI0HUPwxfpozX/RNmtJ36qlaFcZlav4RrC9ldlF98dfTRn+moO+aEH3 9aXXflyGudWwQrHDjaxbR8i4E11rb/wVDv3slJ3tsA4DbyiceLnTFKQUlX4Hl05cfp YqMnfll+T0P08nATUQ5X/+08SMP9enAWAn2e8ib0J2GjXQxIOsUfbiZr5RaZMOEbaI lcyTOK4J4pX6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDp4VZsz9rxL; Sat, 5 Jun 2021 03:47:22 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:52 +0000 Message-Id: <20210605014655.18459-3-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-linkify-it-py, python-uc-micro-py): New variables. --- gnu/packages/python-xyz.scm | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d978942402..89717975ee 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7027,6 +7027,78 @@ cluster without needing to write any wrapper code yourself.") (define-public python2-gridmap (package-with-python2 python-gridmap)) +(define python-uc-micro-py + (package + (name "python-uc-micro-py") + (version "1.0.1") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/tsutsu3/uc.micro-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv")))) + (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"))))))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "https://github.com/tsutsu3/uc.micro-py") + (synopsis "Micro subset of unicode data files for linkify-it-py projects") + (description + "This is a Python port of @code{uc.micro}. This package content is only +for the @code{linkify-it-py} project needs.") + (license license:expat))) + +(define-public python-linkify-it-py + (package + (name "python-linkify-it-py") + (version (package-version python-uc-micro-py)) + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/tsutsu3/linkify-it-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00r4sxgvlxkm5k2jwvrsxgzcccfkfzd0knypbcig5almisg7bpl1")))) + (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-uc-micro-py" ,python-uc-micro-py))) + (native-inputs + `(("python-black" ,python-black) + ("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8) + ("python-isort" ,python-isort) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "https://github.com/tsutsu3/linkify-it-py") + (synopsis "Links recognition library with full unicode support") + (description + "This is a Python port of @code{linkify-it}.") + (license license:expat))) + (define-public python-honcho (package (name "python-honcho") 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") From patchwork Sat Jun 5 01:46:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29937 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 21DEC27BC81; Sat, 5 Jun 2021 02:48:24 +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 DFD9427BC78 for ; Sat, 5 Jun 2021 02:48:23 +0100 (BST) Received: from localhost ([::1]:33972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQE-0004Fy-WD for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLPv-0003PN-H9 for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLPv-0005T8-AO 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-0007qP-9U for guix-patches@gnu.org; Fri, 04 Jun 2021 21:48:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins. 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.162285765430079 (code B ref 48842); Sat, 05 Jun 2021 01:48:03 +0000 Received: (at 48842) by debbugs.gnu.org; 5 Jun 2021 01:47:34 +0000 Received: from localhost ([127.0.0.1]:48116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPS-0007oz-99 for submit@debbugs.gnu.org; Fri, 04 Jun 2021 21:47:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpLPQ-0007oA-Kz 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 1103C240026 for <48842@debbugs.gnu.org>; Sat, 5 Jun 2021 03:47:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1622857647; bh=Ldi1YqR0xAid564kUiY2Dar25zNAdJmxuOCiYLCdrkg=; h=From:To:Cc:Subject:Date:From; b=PBGFN74TeCWWl19fqgHqDZ34aPEYbZwkZAuj+NZJaPJDE9eYPqF8P1uskvwK09j3G +KSOIl4JD2bbl73BtsyzmqW1DjPn42dxtDKUq39SRFmeF170cDHd1eEfnjC5Kt8CvU 3KaQCWEBu1pjO4afZ0BgbZhCqLA/0UulPs32Ii3UM9wk4nW5h7Py3vSbBhsbdq/GAK Rw3L3lckbzQUdzRY73Lbrqii+P16Z3jR9Jj1Zvj8umfGtaTRHKLgx5ZOPpWzANUTXm HX7MXhbEOib+QZTX/tieu2GxZBQlZ68aWh7QznofkZf4Le+UCYaLcgp12kl+yavdqF 2AczzTg/W1y+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FxjDs5t5Sz9rxL; Sat, 5 Jun 2021 03:47:25 +0200 (CEST) From: Vinicius Monego Date: Sat, 5 Jun 2021 01:46:54 +0000 Message-Id: <20210605014655.18459-5-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-mdit-py-plugins): New variable. --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fd7b1dd5f1..d357a92474 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7150,6 +7150,43 @@ plugins. Features: @end itemize") (license license:expat))) +(define-public python-mdit-py-plugins + (package + (name "python-mdit-py-plugins") + (version "0.2.8") + (source + (origin + ;; There are no tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/executablebooks/mdit-py-plugins") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i")))) + (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-markdown-it-py" ,python-markdown-it-py))) + (native-inputs + `(("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/mdit-py-plugins") + (synopsis "Collection of plugins for markdown-it-py") + (description + "Collection of plugins for markdown-it-py.") + (license license:expat))) + (define-public python-honcho (package (name "python-honcho") From patchwork Sat Jun 5 01:46:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29936 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 2C26527BC83; 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 5057527BC86 for ; Sat, 5 Jun 2021 02:48:13 +0100 (BST) Received: from localhost ([::1]:32900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLQ4-0003WL-C8 for patchwork@mira.cbaines.net; Fri, 04 Jun 2021 21:48:12 -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 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. --- 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")