From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sLAhBQtmfmC8EAAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 07:26:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wN27AAtmfmBDPgAAB5/wlQ (envelope-from ) for ; Tue, 20 Apr 2021 05:26:35 +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 C03791A1E5 for ; Tue, 20 Apr 2021 07:26:34 +0200 (CEST) Received: from localhost ([::1]:42384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYiu9-00043H-U6 for larch@yhetil.org; Tue, 20 Apr 2021 01:26:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYitg-0003MA-E5 for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYitg-0004HS-4t for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYitg-0007kB-1Z for guix-patches@gnu.org; Tue, 20 Apr 2021 01:26:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47906] [PATCH 19/22] gnu: Add python-pytest-xvfb. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Apr 2021 05:26:03 +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.161889632529660 (code B ref 47906); Tue, 20 Apr 2021 05:26:03 +0000 Received: (at 47906) by debbugs.gnu.org; 20 Apr 2021 05:25:25 +0000 Received: from localhost ([127.0.0.1]:52702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYit2-0007iF-Lu for submit@debbugs.gnu.org; Tue, 20 Apr 2021 01:25:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYisz-0007gs-Hw for 47906@debbugs.gnu.org; Tue, 20 Apr 2021 01:25:21 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id F0E4A2400E5 for <47906@debbugs.gnu.org>; Tue, 20 Apr 2021 07:25:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618896316; bh=n4AZ6n4Zjm7JWltxBamcHqRdn1Mf/AmtEICBdc4++68=; h=From:To:Cc:Subject:Date:From; b=gKeJp3OUarh2zDVL4NcC17iUgx2pckWjTX2SfqKmpsDbuQI/TjNGyxf4Xnvqx67BY Sx85fTFx5CM/VYpuuijmEUIcR5hXgC1Glt5N5F1CKVfhjSo1EMM8juyShM0UX7qyRZ z6WN3RKgtIA7TyuTnWejAG/BqMNPs2aVrZD3jpXZd+0vdb9krIszoGxDNuc0wqR4g5 EWpFUgYyCQIInGa1mFapt8DXmIbKsai7lllF0OVPwOTfgQ9zvT0ELaxLGTl4OH0kDT 4BYknabzFuweOXfREst72yGehGsxJXVRymc7JJO/PbQou/7Xxwgj2GuoPiW96eR1w3 mMi7HtWTySOyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FPXFQ4by5z6tmK; Tue, 20 Apr 2021 07:25:14 +0200 (CEST) From: Vinicius Monego Date: Tue, 20 Apr 2021 05:22:43 +0000 Message-Id: <20210420052246.470690-19-monego@posteo.net> In-Reply-To: <20210420052246.470690-1-monego@posteo.net> References: <20210420052246.470690-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=1618896394; 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=4O/fngEXKMQJhF88aZWTJfUtnA0XLP3mMKwHD9W2XJg=; b=jHQT7hkW3roIDU9GPamB0E6SXIjyMlc5h3F21gh3zCQG4jpRRmvyLtHmQXO0Brl5t09+Ta kQZgBmK+5ecj/+B5zaAF1fKoP3KcFa5CiHedKYYEP+wzpKm/JtYSRwDFqQC7FV94AvkuOl 3/hf5AEMTDn2z+jrPAIFG79ujofo1lp8IYTy0cOwXftsR9pqTSvuJJRGrNMZKjACdTH+Kh xoYNwOKRW2/YliYW+LdYm31MWycX4HqjCcOtwajRzhKIi7teaZg7APbgyKGJcRSAGzTE7a 4gOi4jHzlr1JZKgB72RMNE5uXSIc2Kccv4ePDAijLVfqcaWlXUw2BsVfEMfm6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618896394; a=rsa-sha256; cv=none; b=tiQ3Qy4SmqlgokUJH0LEzQvO3ZN/ZLMor974pUx+Yuf8YK5W9gM5ZK8QyqVbdJBTV+a+dV OOgU74X6RMcmKnVTZfNZCrSHGbShHTLbG8vabjWGQ2ZESfKVF4CTGY8Ed1F2adW1Jbc9JZ +mCKwKaMONNUpStmdKKjAx3/ZYF+3lGp1AXqaYpXyLHlE6fKFBSbg76ZI88ipfTW1t3Xb4 60N+/w7pbot7xnLxCARjukFXZO0vt14w169lvLldwsYqIFFUA9n0GwHjAnZtoLKj0tVpDS LqUUmZ6R+Ybv5hhJoXDixmJe1rr55tl/ZGTW5vV/5/+dXle131DGfojAAa3dHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=gKeJp3OU; 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.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=gKeJp3OU; 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: C03791A1E5 X-Spam-Score: 3.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: +4OADpH+xOsB * gnu/packages/python-check.scm (python-pytest-xvfb): New variable. --- gnu/packages/python-check.scm | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index db09197d41..427b32c5cf 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -39,6 +39,7 @@ #:use-module (gnu packages qt) #:use-module (gnu packages web) #:use-module (gnu packages xml) + #:use-module (gnu packages xorg) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -831,6 +832,42 @@ for the @code{pytest} framework.") rounds that are calibrated to the chosen timer.") (license license:bsd-2))) +(define-public python-pytest-xvfb + (package + (name "python-pytest-xvfb") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-xvfb" version)) + (sha256 + (base32 "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + (add-before 'build 'prepare-tests + (lambda _ + (system "Xvfb &") + (setenv "DISPLAY" ":0") + + ;; This test is meant to run on Windows. + (delete-file "tests/test_xvfb_windows.py") + #t))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner) + ("xorg-server" ,xorg-server-for-tests))) + (propagated-inputs + `(("python-pyvirtualdisplay" + ,python-pyvirtualdisplay))) + (home-page "https://github.com/The-Compiler/pytest-xvfb") + (synopsis "Pytest plugin to run Xvfb for tests") + (description + "This package provides a Pytest plugin to run Xvfb for tests.") + (license license:expat))) + (define-public python-pytest-services (package (name "python-pytest-services") -- 2.31.1