From patchwork Thu Apr 16 08:28: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: 21283 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 937C127BBE4; Thu, 16 Apr 2020 09:29:11 +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 5743127BBE1 for ; Thu, 16 Apr 2020 09:29:11 +0100 (BST) Received: from localhost ([::1]:59288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOztW-00083r-SV for patchwork@mira.cbaines.net; Thu, 16 Apr 2020 04:29:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45503) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOztR-00082f-63 for guix-patches@gnu.org; Thu, 16 Apr 2020 04:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOztP-0005uR-VZ for guix-patches@gnu.org; Thu, 16 Apr 2020 04:29:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOztP-0005uC-T1 for guix-patches@gnu.org; Thu, 16 Apr 2020 04:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOztP-0000ef-P2 for guix-patches@gnu.org; Thu, 16 Apr 2020 04:29:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40543] [PATCH v3 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: Thu, 16 Apr 2020 08:29: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.15870257382480 (code B ref 40543); Thu, 16 Apr 2020 08:29:03 +0000 Received: (at 40543) by debbugs.gnu.org; 16 Apr 2020 08:28:58 +0000 Received: from localhost ([127.0.0.1]:37468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOztJ-0000dp-S0 for submit@debbugs.gnu.org; Thu, 16 Apr 2020 04:28:58 -0400 Received: from mira.cbaines.net ([212.71.252.8]:55820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOztH-0000d9-CN for 40543@debbugs.gnu.org; Thu, 16 Apr 2020 04:28:56 -0400 Received: from localhost (unknown [46.237.160.17]) by mira.cbaines.net (Postfix) with ESMTPSA id DF3D327BBEA for <40543@debbugs.gnu.org>; Thu, 16 Apr 2020 09:28:54 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 94ef8cab for <40543@debbugs.gnu.org>; Thu, 16 Apr 2020 08:28:52 +0000 (UTC) From: Christopher Baines Date: Thu, 16 Apr 2020 09:28:50 +0100 Message-Id: <20200416082852.4319-3-mail@cbaines.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200416082852.4319-1-mail@cbaines.net> References: <20200415174952.9368-1-mail@cbaines.net> <20200416082852.4319-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.