From patchwork Mon Jun 7 11:20:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 30000 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 C799C27BC78; Mon, 7 Jun 2021 12:33:26 +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 9AB1627BC81 for ; Mon, 7 Jun 2021 12:33:24 +0100 (BST) Received: from localhost ([::1]:50344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqDVT-0007xd-FG for patchwork@mira.cbaines.net; Mon, 07 Jun 2021 07:33:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqDKU-0000q6-72 for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqDKT-0006Ss-Vu for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqDKT-0002Jn-Pt for guix-patches@gnu.org; Mon, 07 Jun 2021 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 11:22: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.16230648898805 (code B ref 48842); Mon, 07 Jun 2021 11:22:01 +0000 Received: (at 48842) by debbugs.gnu.org; 7 Jun 2021 11:21:29 +0000 Received: from localhost ([127.0.0.1]:54555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqDJx-0002Hw-Jd for submit@debbugs.gnu.org; Mon, 07 Jun 2021 07:21:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqDJv-0002HQ-JC for 48842@debbugs.gnu.org; Mon, 07 Jun 2021 07:21:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 720A92400FD for <48842@debbugs.gnu.org>; Mon, 7 Jun 2021 13:21:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623064881; bh=aoC4QGsWFR+y2XQt+uOZ+9ckDzlsI6Mkq87fzVIguxc=; h=From:To:Cc:Subject:Date:From; b=k4krOa7y8IRintNq1rXVmudO99UpI2iIau6GKMJIlOSeP2yyJzngyUgw5husd3bKh aGrpEKhRA5lH5+P93BXhKvTc5UmB5ZAnUZPm8JtbnLzfSCn7K/qt1qPrwkbfEJ+kSO GIntm20GykjA7UfYd3yk6g+qC9zK4sTyPMwZF+Ytd5S8XpqMvh8ZGfeVt6fp+dDw7f ATpdYFW5HvzzvKjUin0ngNj7y3Im3NWTxJ6Q4sN+d+5jIaJVTnpOS5Ze7b7xQl/pmK xSO5Mo8f8iO55kzsMZ8fzc1CoJxkR/HPJPAai/zTA4TkHY5eyBjae8nhLGsP3yNf6A SqorPQn0y8Q+A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Fz9t76W9Vz9rxG; Mon, 7 Jun 2021 13:21:19 +0200 (CEST) From: Vinicius Monego Date: Mon, 7 Jun 2021 11:20:46 +0000 Message-Id: <20210607112051.214681-2-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/python-check.scm (python-pytest-regressions): New variable. --- Rebasing only. 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 3bdd11d4f5..7c8e6546a2 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.") 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")