From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +F18HgIEvmDODgEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 13:33:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +GXsGQIEvmCNbAAAbx9fmQ (envelope-from ) for ; Mon, 07 Jun 2021 11:33:22 +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 3787320705 for ; Mon, 7 Jun 2021 13:33:22 +0200 (CEST) Received: from localhost ([::1]:50344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqDVQ-0007xd-Ui for larch@yhetil.org; Mon, 07 Jun 2021 07:33:20 -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 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=1623065602; 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=c830U3LbWPUrbkgkWnXHI8CHqGuepriBgh1RcG4G8/E=; b=u0AjifeJv7Fian91i1wv1AQ4oCdQrdu1vS7C8U/IFgRRP1mUVIG/oXjouOLD5DVY7pr/Fz bFSsDV+lmE0rQi8lJeFvNoBYirkcVxliCpFzLWLSN/lkEj4Y2s2YjPK5AnLXThPzV5EfDQ Mr/gx2jgdSDA7t56n+4SBzfpjD33o9KErDGOzdlOVDKxHlXzuKG7Fpc/qkhmT+qHGajS0v xvExV85Kz2LHJSAKqZFuV4uMzKa6ppVZcAuZy7CxqOw99QPW0jp6S/5+F05w9OksMf5Llq mJrTKLxyMZ6J7xKhU7xiEMtR4GnvxE7arRJg90HCKyMm9SlHIEy/hOKv9bdCeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623065602; a=rsa-sha256; cv=none; b=pgh27wLH9/dl6ai26jIlNehCxnvNj2dZ4nmoWezGACO878M9hJ7dOhylqwFRjiMmaCecvY 68BVZCUTY0IJ7XRIdRD1O7B3OxsmtiaSeILlc1TA/cbvNzyFYHEI9pDK109cTBu6oMZhjp nZk/5OQsqDAUrBfnejBWkNLQCHnuF03sUuGJbKILJjHUPVHW0k8QG5zewVmJNOHZSY9Cbi M728/vkR6/DMJYFt/lxqfTbTIYRbXmyTpJbpmZsO7qObv9cd4HKVzYH8Q510ZbbQQ2Zwcx GyZ1Z8CSJYRNWaOFpQwK3ew6uAFVvCC19RlocTN+mZWpZnGmaOq/HcVpLDFgTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=k4krOa7y; 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=k4krOa7y; 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: 3787320705 X-Spam-Score: 5.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: nMiThlcCNA+Y * 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") -- 2.31.1