From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OJxWINjXumApHgAAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 03:48:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wBp4G9jXumAOJwAAbx9fmQ (envelope-from ) for ; Sat, 05 Jun 2021 01:48:08 +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 05DD617BB1 for ; Sat, 5 Jun 2021 03:48:08 +0200 (CEST) Received: from localhost ([::1]:60980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLPy-0003PM-Oy for larch@yhetil.org; Fri, 04 Jun 2021 21:48:06 -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 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=1622857688; 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=oCxixCzaNXCgll/eJTbQQHSYx4RiksizUEVaROyakCI=; b=KG5ZZwdM9rYcQWpd0p3EqdOlMOMrELDXFC6i4zVXYn2lpUuB62J8x1TjqZt/QzDgYiACrG qZtOuwhiRWC+fwAzyR1OfZpDypAg7oWufUjxwQnLw3S/9tv4klAv3/q0kBTAz3v4WI6vo2 k8GhviAvyYS77ZFIPOuwdGxXiWdWIdmiOff+NmuxXglBG1HKeMEf4hb9PoR3i4lS4/PfAP 2MZSDvVwWCFg/Tb4d2g0aUSXyaXc+FjV5A7mcumz1svqiY48BI/060oZlBs1kYAnXCVq5d uUcemiomQtFqzXEu+L+ryHpbKn/7itCpJ/M+LtC0cSFGpNckObC0LAX3kA/Gbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622857688; a=rsa-sha256; cv=none; b=ki9Bbd5e4JfF3+ZJGV1Ga3mBv6Ga6Nu9eiqIjwRsIEfjtmSW/eTTZw+4m9/4iZBsEoWAmd tYnPogeQy5Hu6By2UzMuTnbk9bC26l3/wRmmVDJ+q1r8odfYPRabUvY/syIRGk4jLrRzki 3UQMMF+giE2IQWsdb+S8fS9qRVPmqS0D5MRdFHSfoGV4V58bkOQ8XAPbfQLFVuvaaBBrRt ET7Rvy8P/FiYpOO/hfVYic54JgyaKzxN7zsnlYrC0nWPOBujaS8dYARhoysKVlsDQ+Qnqb 43mdIh5zFVEBPdJwWkrs4mBJHNJrsVP1AtZRYDtsgFis3Md7N9vqv3yidldKVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=mbc0FFx0; 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=mbc0FFx0; 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: 05DD617BB1 X-Spam-Score: 3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: +rukA1rWjBAJ * 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") -- 2.31.1