From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iH+qNNRlfmDbEAAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 07:25:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IMOIL9RlfmDYKQAA1q6Kng (envelope-from ) for ; Tue, 20 Apr 2021 05:25:40 +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 35F1C15F07 for ; Tue, 20 Apr 2021 07:25:40 +0200 (CEST) Received: from localhost ([::1]:40038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYitH-00030P-DY for larch@yhetil.org; Tue, 20 Apr 2021 01:25:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYisl-0002FY-7Q for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYisk-0003ba-V8 for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYisk-0007ff-RM for guix-patches@gnu.org; Tue, 20 Apr 2021 01:25:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47906] [PATCH 12/22] gnu: Add python-pytest-qt. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Apr 2021 05:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47906 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47906@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 47906-submit@debbugs.gnu.org id=B47906.161889630529450 (code B ref 47906); Tue, 20 Apr 2021 05:25:06 +0000 Received: (at 47906) by debbugs.gnu.org; 20 Apr 2021 05:25:05 +0000 Received: from localhost ([127.0.0.1]:52664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisd-0007dm-T9 for submit@debbugs.gnu.org; Tue, 20 Apr 2021 01:25:04 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisc-0007dN-Ex for 47906@debbugs.gnu.org; Tue, 20 Apr 2021 01:24:59 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E4DA6240026 for <47906@debbugs.gnu.org>; Tue, 20 Apr 2021 07:24:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618896292; bh=0XqMrY3fEXYkFmerj+/zPMAu7MEYY1CEzblpfTMIn3c=; h=From:To:Cc:Subject:Date:From; b=MhsMof5WK8yzgVe8VCTPaNKeAGb/OSpNWjLIB+1Ejnco5OoMOD5r2lP28BQqyDuF7 I7uI4TGXKen2Dz34n6uKe6fGIZBPZNxSAnzenMgdMbi8MtUUBFet1okv5gtGH2GxJL v4J31HHWbqkXPSdzIfRdTTVOpcVPT+S0PrYhNZjt4Tv9ByAv8k6T4A5j/6fLIyyjGn ZBGg+dw2GeqGWMJS424uBxun0Pxmfg03+g75k26rkKJpCzp3L1BFvtJExq0MZj5U+w MBiI304cHE8llcQTn6NFBeM+g0RLU2Qz1mReWHYV76Lp9MdXyInFFPsFFsjILpwB7t mVT1o13UfRcNQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FPXDz3V1xz6tmM; Tue, 20 Apr 2021 07:24:51 +0200 (CEST) From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:36 +0000 Message-Id: <20210420052246.470690-12-monego@posteo.net> In-Reply-To: <20210420052246.470690-1-monego@posteo.net> References: <20210420052246.470690-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=1618896340; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=d+lo2KGTxtgUfkDn7xH1NJl6D3poQcyld0OnZUvrwlI=; b=Pg1sAf1yMqsES7MbY8eJMkmfJC8mC0AUXcPg8+61mRd35hky35DgK4xpEDgRkQogvv3Jeu YAv5zHU0GgO+zNZuVMG/af6xMk4akfgt2bEl6+33LAL7wEzutDiQclrsM7Ev7b7T95ghJv Rn+knSbyKFFVxRA45ZhkbgxT34t76R1crF5MJjkU5uuYpUPPJSear7BEuLoBDRqYuFmTB9 U7VUD8H2AyQ0rkcxCg82IsExUB4qQgSvr1fJEan86cdpQBuxNYdYy91xpmGePs4lGul4eU CPZBMhFvA0kBGmkHZwyB9xwf+YDDNHQgTX7AcGb8MMMDbZhcs0oTv8Vc5bQQuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618896340; a=rsa-sha256; cv=none; b=JOrkT3VXC3n+LNO5RsPYTfMH3CfknPydckW7VcvWXWktv0j2AZ20m9zLWfwXY8Q/nnEM+1 LrDnfPCLrDpMscngYlHu1yK/aC8ba/nyggMixK6DzyXJ8UJDPXRscH8M8iHmlsUTkwYj5d O5a2xXCZCAwODmyGZfGq0NbXLFk6Fe7lfu7AF+kcCUDx14y6fh+WmlpOPNmitATWTtAcJ5 QfzXlzKz4HdRok0hAtVpKQYimfGHi6ja5tbJw0i0YT+7WP6YHu3SsF8VwCH2J3pHXQ5kRI +9JVKmngIwirY4MiiLmtL207pYETA2pO2e0Q0HTwoLgEvVPJ+1wEwQmUMcgQWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MhsMof5W; 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: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MhsMof5W; 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: 35F1C15F07 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: O+CfYYmJFPoP * gnu/packages/python-check.scm (python-pytest-qt): New variable. --- gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index bde836a931..db09197d41 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2020 Julien Lepiller ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Edouard Klein -;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Brendan Tildesley @@ -36,6 +36,7 @@ #:use-module (gnu packages python-build) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages qt) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (guix utils) @@ -1029,6 +1030,42 @@ variables in the @file{pytest.ini} file.") libraries.") (license license:expat))) +(define-public python-pytest-qt + (package + (name "python-pytest-qt") + (version "3.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-qt" version)) + (sha256 + (base32 "09c9psfn3zigpaw1l1cmynpa3csxa49wc2ih5lzl24skdkw0njvi")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-qpa + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) + (propagated-inputs + `(("python-pyqt" ,python-pyqt))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner) + ("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/pytest-dev/pytest-qt") + (synopsis "Pytest support for PyQt and PySide applications") + (description + "@code{pytest-qt} is a Pytest plugin that allows programmers to write +tests for PyQt5 and PySide2 applications. + +The main usage is to use the @code{qtbot} fixture, responsible for handling +@code{qApp} creation as needed and provides methods to simulate user +interaction, like key presses and mouse clicks.") + (license license:expat))) + (define-public python-codacy-coverage (package (name "python-codacy-coverage") -- 2.31.1