From patchwork Thu Oct 21 04:01:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33970 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 55EDB27BBE5; Thu, 21 Oct 2021 05:04:29 +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_H2,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 D5B3E27BBE1 for ; Thu, 21 Oct 2021 05:04:28 +0100 (BST) Received: from localhost ([::1]:40244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPJb-0003KW-Tb for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 00:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPJF-0003Il-D5 for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPJF-0000ME-4a for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPJE-0005eU-WD for guix-patches@gnu.org; Thu, 21 Oct 2021 00:04:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 14/29] gnu: Add python-pytest-doctest-custom. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04:04:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.163478901621543 (code B ref 51314); Thu, 21 Oct 2021 04:04:04 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:03:36 +0000 Received: from localhost ([127.0.0.1]:55955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIm-0005bP-6n for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPIk-0005b4-QO for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:03:35 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 621E124010A for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:03:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634789007; bh=UTrkDq0SVnc8i8y0uRD+AAnPmJh+WtOd39ZgzsdEopo=; h=From:To:Cc:Subject:Date:From; b=ertHHz4AL1Ijy6Nx+Q6mO4WDREAhLDxRD2LYwks8rKTyisRwa1bfDysD6F9EvTRtw vFUku0R/t6+yy3ro2QxShE39dj/6nardVTgQl/3KPTWzNCO7fXnD6i+Kxx/AS3GgKd 9FSOCHCg1smK7/a8RAJlUWB7PCFtDIcT7Z4ofu55cML2bvyh2I9Al14tAqugxeIteX 1yK+OFG0LpQekwoEaD9ygZNrseO87aMzrtmM05BWk6MAhnY/Gh3akzLIWtdgpCuEAY zPm8IuNhYQgbYDG4L4ABkG4pYZ4yvGkWcRUQf16Qtg6LffNtKuTPFd3oI2x9PFiJ3k /BFkiXHgn6qXw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYk62xTqz6tm9; Thu, 21 Oct 2021 06:03:26 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:45 +0000 Message-Id: <20211021040200.241873-10-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-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-doctest-custom): New variable. --- gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index f321d0b0f6..3cc0f80828 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -745,6 +745,35 @@ in Pytest.") "Plugin for managing VCR.py cassettes.") (license license:expat)))) +(define-public python-pytest-doctest-custom + (package + (name "python-pytest-doctest-custom") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-doctest-custom" version)) + (sha256 + (base32 "0kxkdd6q9c3h31kc88lbyfll4c45b0zjd24cbr4c083fcvcy7lip")))) + (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" "test_pytest_doctest_custom.py"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/danilobellini/pytest-doctest-custom") + (synopsis + "Pytest plugin to customize string representations of doctest results") + (description "This package provides a Pytest plugin for customizing string +representations of doctest results. It can change the display hook used by +doctest to render the object representations.") + (license license:expat))) + (define-public python-pytest-checkdocs (package (name "python-pytest-checkdocs")