From patchwork Wed Apr 15 17:49:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 21276 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 C906C27BBEA; Wed, 15 Apr 2020 18:50:38 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY 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 ESMTP id 89D2D27BBE4 for ; Wed, 15 Apr 2020 18:50:38 +0100 (BST) Received: from localhost ([::1]:53346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmBK-0001N9-2H for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 13:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47009) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmAo-000167-Bt for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmAn-0005Iz-D7 for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOmAn-0005Is-AP for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOmAn-0001MV-8C for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v2 1/5] gnu: Add python2-pyatspi. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 17:50:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40543@debbugs.gnu.org Received: via spool by 40543-submit@debbugs.gnu.org id=B40543.15869730035219 (code B ref 40543); Wed, 15 Apr 2020 17:50:05 +0000 Received: (at 40543) by debbugs.gnu.org; 15 Apr 2020 17:50:03 +0000 Received: from localhost ([127.0.0.1]:37097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAl-0001Lv-4r for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:50:03 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAe-0001Kb-DJ for 40543@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:59 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id 6EAB827BBE1 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 18:49:55 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 55fe1921 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 17:49:52 +0000 (UTC) From: Christopher Baines Date: Wed, 15 Apr 2020 18:49:48 +0100 Message-Id: <20200415174952.9368-1-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <87wo6n726x.fsf@cbaines.net> References: <87wo6n726x.fsf@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 This will enable updating python2-dogtail to 0.9.11. * gnu/packages/gnome.scm (python2-pyatspi): New variable. --- gnu/packages/gnome.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 33aae4545e..4710bd1349 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -8774,6 +8774,14 @@ accessibility infrastructure.") (license license:lgpl2.0) (properties '((upstream-name . "pyatspi"))))) +(define-public python2-pyatspi + (package + (inherit python-pyatspi) + (name "python2-pyatspi") + (inputs + `(("python" ,python-2) + ("python-pygobject" ,python2-pygobject))))) + (define-public orca (package (name "orca") From patchwork Wed Apr 15 17:49:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 21274 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 1405C27BBEA; Wed, 15 Apr 2020 18:50:24 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY,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 ESMTP id AB95527BBE4 for ; Wed, 15 Apr 2020 18:50:23 +0100 (BST) Received: from localhost ([::1]:53336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmB5-00016r-60 for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 13:50:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46976) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmAm-00015q-R0 for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmAl-0005Ga-Is for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOmAl-0005GW-Fr for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOmAl-0001M1-BV for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v2 2/5] gnu: python-pyatspi: Propagate python-pygobject. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40543@debbugs.gnu.org Received: via spool by 40543-submit@debbugs.gnu.org id=B40543.15869730025184 (code B ref 40543); Wed, 15 Apr 2020 17:50:03 +0000 Received: (at 40543) by debbugs.gnu.org; 15 Apr 2020 17:50:02 +0000 Received: from localhost ([127.0.0.1]:37090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAj-0001LU-J4 for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:50:01 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAe-0001Ka-GW for 40543@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:58 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id 8FF7B27BBE4 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 18:49:55 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id da346538 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 17:49:52 +0000 (UTC) From: Christopher Baines Date: Wed, 15 Apr 2020 18:49:49 +0100 Message-Id: <20200415174952.9368-2-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200415174952.9368-1-mail@cbaines.net> References: <87wo6n726x.fsf@cbaines.net> <20200415174952.9368-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 As python-pygobject is required at runtime. * gnu/packages/gnome.scm (python-pygobject)[inputs]: Move python-pygobject to… [propagated-inputs]: …here. (python2-pygobject)[inputs]: Move python2-pygobject to… [propagated-inputs]: …here. --- gnu/packages/gnome.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 4710bd1349..e7b36fff1d 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -8763,8 +8763,9 @@ from gi.repository import Atspi")) (native-inputs `(("pkg-config" ,pkg-config))) (inputs - `(("python" ,python) - ("python-pygobject" ,python-pygobject))) + `(("python" ,python))) + (propagated-inputs + `(("python-pygobject" ,python-pygobject))) (synopsis "Python client bindings for D-Bus AT-SPI") (home-page "https://wiki.linuxfoundation.org/accessibility\ /atk/at-spi/at-spi_on_d-bus") @@ -8779,8 +8780,9 @@ accessibility infrastructure.") (inherit python-pyatspi) (name "python2-pyatspi") (inputs - `(("python" ,python-2) - ("python-pygobject" ,python2-pygobject))))) + `(("python" ,python-2))) + (propagated-inputs + `(("python-pygobject" ,python2-pygobject))))) (define-public orca (package From patchwork Wed Apr 15 17:49:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 21273 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 ECDFB27BBE1; Wed, 15 Apr 2020 18:50:22 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY,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 ESMTP id 712EA27BBE4 for ; Wed, 15 Apr 2020 18:50:22 +0100 (BST) Received: from localhost ([::1]:53334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmB3-00016M-UW for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 13:50:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46950) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmAl-00015n-S3 for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmAk-0005G4-Ir for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOmAk-0005Fw-Fe for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOmAk-0001Lg-BY for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v2 3/5] gnu: python2-dogtail: Update to 0.9.11. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40543@debbugs.gnu.org Received: via spool by 40543-submit@debbugs.gnu.org id=B40543.15869729985149 (code B ref 40543); Wed, 15 Apr 2020 17:50:02 +0000 Received: (at 40543) by debbugs.gnu.org; 15 Apr 2020 17:49:58 +0000 Received: from localhost ([127.0.0.1]:37088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAg-0001Kp-13 for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:58 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAe-0001Kd-D3 for 40543@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:57 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id A391827BBEA for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 18:49:55 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 0b12dbd1 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 17:49:52 +0000 (UTC) From: Christopher Baines Date: Wed, 15 Apr 2020 18:49:50 +0100 Message-Id: <20200415174952.9368-3-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200415174952.9368-1-mail@cbaines.net> References: <87wo6n726x.fsf@cbaines.net> <20200415174952.9368-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 There are newer releases on a gitlab.com repository compared to PyPI. Make an attempt at getting the tests to work, they don't yet I believe because DBus isn't working properly. This update is a step towards getting a Python 3 variant of the package, which can be used to test virt-manager. * gnu/packages/python-xyz.scm (python2-dogtail): Update to 0.9.11. [source]: Switch from PyPI to gitlab.com, as gitlab.com contains newer releases. [arguments]: Replace the check phase, and update comment about disabling the tests. [propagated-inputs,native-inputs]: Add relevant packages. [home-page]: Change to https://gitlab.com/dogtail/dogtail/ --- gnu/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 20b8784c05..3dccedd6df 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1741,18 +1741,42 @@ Python 3.3+.") ;; spaces in indentation" with Python 3. (package (name "python2-dogtail") - (version "0.9.9") + (version "0.9.11") (source (origin (method url-fetch) - (uri (pypi-uri "dogtail" version)) + (uri + (string-append + "https://gitlab.com/dogtail/dogtail/-/raw/released/" + "dogtail-" version ".tar.gz")) (sha256 (base32 - "0p5wfssvzr9w0bvhllzbbd8fnp4cca2qxcpcsc33dchrmh5n552x")))) + "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0")))) (build-system python-build-system) - (arguments `(#:python ,python-2 - #:tests? #f)) ; invalid command "test" - ;; Currently no offical homepage. - (home-page "https://pypi.org/project/dogtail/") + (arguments + `(#:python ,python-2 + #:tests? #f ; TODO Launching dbus for the tests + ; fails + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/")) + #t))))) + (propagated-inputs + `(("python-pygobject" ,python2-pygobject) + ("python-pycairo" ,python2-pycairo) + ("python-pyatspi" ,python2-pyatspi))) + (native-inputs + `(("python-nose" ,python2-nose) + ("gtk+" ,gtk+) + ("xvfb" ,xorg-server) + ("dbus" ,dbus) + ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) + ("gobject-introspection" ,gobject-introspection))) + (home-page "https://gitlab.com/dogtail/dogtail/") (synopsis "GUI test tool and automation framework written in Python") (description "Dogtail is a GUI test tool and automation framework written in Python. From patchwork Wed Apr 15 17:49:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 21275 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 2980E27BBE4; Wed, 15 Apr 2020 18:50:24 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY,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 ESMTP id AAF2827BBE1 for ; Wed, 15 Apr 2020 18:50:23 +0100 (BST) Received: from localhost ([::1]:53338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmB5-00017q-6I for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 13:50:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46982) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmAn-000160-8q for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmAm-0005H6-4j for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOmAm-0005H2-1r for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOmAm-0001MF-0E for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v2 4/5] gnu: python2-dogtail: Switch to Python 3, and add Python 2 variant. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40543@debbugs.gnu.org Received: via spool by 40543-submit@debbugs.gnu.org id=B40543.15869730025198 (code B ref 40543); Wed, 15 Apr 2020 17:50:03 +0000 Received: (at 40543) by debbugs.gnu.org; 15 Apr 2020 17:50:02 +0000 Received: from localhost ([127.0.0.1]:37092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAk-0001LZ-0L for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:50:02 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAe-0001Kc-GY for 40543@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:58 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id B970E27BBEB for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 18:49:55 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 62435e22 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 17:49:52 +0000 (UTC) From: Christopher Baines Date: Wed, 15 Apr 2020 18:49:51 +0100 Message-Id: <20200415174952.9368-4-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200415174952.9368-1-mail@cbaines.net> References: <87wo6n726x.fsf@cbaines.net> <20200415174952.9368-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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-xyz.scm (python2-dogtail): Rename to python-dogtail. [name]: Change python2-dogtail to python-dogtail. [arguments]: Remove #:python. [propagated-inputs,native-inputs]: Switch Python 2 packages to Python 3 variants. (python2-dogtail): New variable. --- gnu/packages/python-xyz.scm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3dccedd6df..768f030051 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1736,11 +1736,9 @@ Python 3.3+.") (delete-file "test/test_Script.py") #t)))))))) -(define-public python2-dogtail - ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and - ;; spaces in indentation" with Python 3. +(define-public python-dogtail (package - (name "python2-dogtail") + (name "python-dogtail") (version "0.9.11") (source (origin (method url-fetch) @@ -1753,8 +1751,7 @@ Python 3.3+.") "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0")))) (build-system python-build-system) (arguments - `(#:python ,python-2 - #:tests? #f ; TODO Launching dbus for the tests + `(#:tests? #f ; TODO Launching dbus for the tests ; fails #:phases (modify-phases %standard-phases @@ -1766,11 +1763,11 @@ Python 3.3+.") (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/")) #t))))) (propagated-inputs - `(("python-pygobject" ,python2-pygobject) - ("python-pycairo" ,python2-pycairo) - ("python-pyatspi" ,python2-pyatspi))) + `(("python-pygobject" ,python-pygobject) + ("python-pycairo" ,python-pycairo) + ("python-pyatspi" ,python-pyatspi))) (native-inputs - `(("python-nose" ,python2-nose) + `(("python-nose" ,python-nose) ("gtk+" ,gtk+) ("xvfb" ,xorg-server) ("dbus" ,dbus) @@ -1785,6 +1782,9 @@ applications. dogtail scripts are written in Python and executed like any other Python program.") (license license:gpl2+))) +(define-public python2-dogtail + (package-with-python2 python-dogtail)) + (define-public python-empy (package (name "python-empy") From patchwork Wed Apr 15 17:49:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 21277 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 DEA9E27BBE4; Wed, 15 Apr 2020 18:50:38 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, UNPARSEABLE_RELAY,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 ESMTP id 7A1EF27BBE1 for ; Wed, 15 Apr 2020 18:50:38 +0100 (BST) Received: from localhost ([::1]:53348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmBK-0001Nn-1y for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 13:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47004) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOmAo-000161-5t for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOmAm-0005IR-PZ for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOmAm-0005Hm-MQ for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOmAm-0001MN-JR for guix-patches@gnu.org; Wed, 15 Apr 2020 13:50:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v2 5/5] gnu: virt-manager: Work towards enabling some tests. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 17:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40543 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40543@debbugs.gnu.org Received: via spool by 40543-submit@debbugs.gnu.org id=B40543.15869730035206 (code B ref 40543); Wed, 15 Apr 2020 17:50:04 +0000 Received: (at 40543) by debbugs.gnu.org; 15 Apr 2020 17:50:03 +0000 Received: from localhost ([127.0.0.1]:37095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAk-0001Ln-JC for submit@debbugs.gnu.org; Wed, 15 Apr 2020 13:50:03 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOmAe-0001Ke-E3 for 40543@debbugs.gnu.org; Wed, 15 Apr 2020 13:49:59 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id C6ED127BBEE for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 18:49:55 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 8506ba33 for <40543@debbugs.gnu.org>; Wed, 15 Apr 2020 17:49:52 +0000 (UTC) From: Christopher Baines Date: Wed, 15 Apr 2020 18:49:52 +0100 Message-Id: <20200415174952.9368-5-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200415174952.9368-1-mail@cbaines.net> References: <87wo6n726x.fsf@cbaines.net> <20200415174952.9368-1-mail@cbaines.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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/virtualization.scm (virt-manager)[arguments]: Set #:test-target to "test_ui", replace the 'check phase. [native-inputs]: Add some inputs required for running tests. --- gnu/packages/virtualization.scm | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index be17ec15f0..c8840f345a 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -602,9 +602,10 @@ virtualization library.") (build-system python-build-system) (arguments `(#:use-setuptools? #f ; uses custom distutils 'install' command - ;; Some of the tests seem to require network access to install virtual - ;; machines. - #:tests? #f + #:test-target "test_ui" + #:tests? #f ; TODO The tests currently fail + ; RuntimeError: Loop condition wasn't + ; met #:imported-modules ((guix build glib-or-gtk-build-system) ,@%python-build-system-modules) #:modules ((ice-9 match) @@ -651,6 +652,16 @@ virtualization library.") ,(filter identity paths)))) bin-files)) #t)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + ;; Dogtail requires that Assistive Technology support be enabled + (setenv "GTK_MODULES" "gail:atk-bridge") + (invoke "dbus-run-session" "--" "python" "setup.py" "test_ui")) + #t)) (add-after 'install 'glib-or-gtk-compile-schemas (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas)) (add-after 'install 'glib-or-gtk-wrap @@ -679,7 +690,13 @@ virtualization library.") ("gobject-introspection" ,gobject-introspection) ("gtk+" ,gtk+ "bin") ; gtk-update-icon-cache ("perl" ,perl) ; pod2man - ("intltool" ,intltool))) + ("intltool" ,intltool) + ;; The following are required for running the tests + ("python-dogtail" ,python-dogtail) + ("xvfb" ,xorg-server) + ("dbus" ,dbus) + ("at-spi2-core" ,at-spi2-core) + ("gsettings-desktop-schemas" ,gsettings-desktop-schemas))) (home-page "https://virt-manager.org/") (synopsis "Manage virtual machines") (description