unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 40543@debbugs.gnu.org
Subject: [bug#40543] [PATCH 2/4] gnu: python2-dogtail: Update to 0.9.11.
Date: Fri, 10 Apr 2020 17:21:55 +0100	[thread overview]
Message-ID: <20200410162157.21065-2-mail@cbaines.net> (raw)
In-Reply-To: <20200410162157.21065-1-mail@cbaines.net>

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 64aa7da41e..455bebf1b7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1740,18 +1740,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.
-- 
2.26.0

  reply	other threads:[~2020-04-10 16:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10 16:09 [bug#40543] [PATCH 0/4] Work towards enabling virt-manager tests Christopher Baines
2020-04-10 16:21 ` [bug#40543] [PATCH 1/4] gnu: Add python2-pyatspi Christopher Baines
2020-04-10 16:21   ` Christopher Baines [this message]
2020-04-10 16:21   ` [bug#40543] [PATCH 3/4] gnu: python2-dogtail: Switch to Python 3, and add Python 2 variant Christopher Baines
2020-04-10 16:21   ` [bug#40543] [PATCH 4/4] gnu: virt-manager: Work towards enabling some tests Christopher Baines
2020-04-10 16:54     ` Marius Bakke
2020-04-15 17:57       ` Christopher Baines
2020-04-10 16:41   ` [bug#40543] [PATCH 1/4] gnu: Add python2-pyatspi Marius Bakke
2020-04-15 17:58     ` Christopher Baines
2020-04-15 17:49 ` [bug#40543] [PATCH v2 1/5] " Christopher Baines
2020-04-15 17:49   ` [bug#40543] [PATCH v2 2/5] gnu: python-pyatspi: Propagate python-pygobject Christopher Baines
2020-04-15 18:37     ` Marius Bakke
2020-04-16  8:28       ` Christopher Baines
2020-04-15 17:49   ` [bug#40543] [PATCH v2 3/5] gnu: python2-dogtail: Update to 0.9.11 Christopher Baines
2020-04-15 17:49   ` [bug#40543] [PATCH v2 4/5] gnu: python2-dogtail: Switch to Python 3, and add Python 2 variant Christopher Baines
2020-04-15 17:49   ` [bug#40543] [PATCH v2 5/5] gnu: virt-manager: Work towards enabling some tests Christopher Baines
2020-04-15 18:46     ` Marius Bakke
2020-04-16  8:27       ` Christopher Baines
2020-04-16  8:28   ` [bug#40543] [PATCH v3 1/5] gnu: Add python2-pyatspi Christopher Baines
2020-04-16  8:28     ` [bug#40543] [PATCH v3 2/5] gnu: python-pyatspi: Propagate python-pygobject Christopher Baines
2020-04-16  8:28     ` [bug#40543] [PATCH v3 3/5] gnu: python2-dogtail: Update to 0.9.11 Christopher Baines
2020-04-16  8:28     ` [bug#40543] [PATCH v3 4/5] gnu: python2-dogtail: Switch to Python 3, and add Python 2 variant Christopher Baines
2020-04-16  8:28     ` [bug#40543] [PATCH v3 5/5] gnu: virt-manager: Work towards enabling some tests Christopher Baines
2020-05-26  8:03 ` bug#40543: [PATCH 0/4] Work towards enabling virt-manager tests Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200410162157.21065-2-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=40543@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).