unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 70855@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#70855] [PATCH 16/92] gnu: qtile: Update to 0.23.0.
Date: Fri, 10 May 2024 00:53:11 +0200	[thread overview]
Message-ID: <20240509225530.24649-16-ngraves@ngraves.fr> (raw)
In-Reply-To: <20240509225530.24649-1-ngraves@ngraves.fr>

* gnu/packages/wm.scm (qtile): Update to 0.23.0.
  [build-system]: Upgrade to pyproject-build-system.
  [arguments]<#:phases>: Use gexp (but do not indent). Add phase
  pre-check.
  <#:test-flags>: Use it.
  [native-inputs]: Add python-pytest and
  xorg-server-for-tests. Reorder.

Change-Id: Id6f291c0d23fa2cef17d6e45552f45c56f162741
---
 gnu/packages/wm.scm | 35 ++++++++++++++++++++++++-----------
 1 file changed, 24 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index f2cb77f5bfd..3ae4d03839b 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -63,7 +63,7 @@
 ;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
 ;;; Copyright © 2023 Jonathan Brielamier <jonathan.brielmaier@web.de>
 ;;; Copyright © 2023 Vessel Wave <vesselwave@disroot.org>
-;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
+;;; Copyright © 2023, 2024 Nicolas Graves <ngraves@ngraves.fr>
 ;;; Copyright © 2023, 2024 Jaeme Sifat <jaeme@runbox.com>
 ;;; Copyright © 2023 Josselin Poiret <dev@jpoiret.xyz>
 ;;; Copyright © 2024 Timotej Lazar <timotej.lazar@araneo.si>
@@ -101,6 +101,7 @@ (define-module (gnu packages wm)
   #:use-module (guix build-system haskell)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (guix utils)
@@ -594,19 +595,22 @@ (define-public python-i3-py
 (define-public qtile
   (package
     (name "qtile")
-    (version "0.18.1")
+    (version "0.23.0")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "qtile" version))
         (sha256
-          (base32 "14hb26xkza7brvkd4276j60mxd3zsas72ih6y0cq3j060izm1865"))))
-    (build-system python-build-system)
+          (base32 "1v8rxm2xg2igxv6gwa78wrkxzgfxmxfgflbjdp4fm7cxjdx3zrpa"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:tests? #f ; Tests require Xvfb and writable temp/cache space
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-paths
+     (list
+      ;; A lot of tests fail despite Xvfb and writable temp/cache space.
+      #:tests? #f
+      #:test-flags '("--ignore=test/widgets/test_widget_init_configure.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-paths
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "libqtile/pangocffi.py"
                (("^gobject = ffi.dlopen.*")
@@ -626,7 +630,14 @@ (define-public qtile
                (mkdir-p xsessions)
                (copy-file "resources/qtile.desktop" (string-append xsessions "/qtile.desktop"))
                (substitute* (string-append xsessions "/qtile.desktop")
-                 (("qtile start") qtile))))))))
+                 (("qtile start") qtile)))))
+          (add-before 'check 'pre-check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (setenv "HOME" "/tmp")
+                (system "Xvfb :1 &")
+                (setenv "DISPLAY" ":1")
+                (setenv "XDG_CACHE_HOME" "/tmp")))))))
     (inputs
       (list glib pango pulseaudio))
     (propagated-inputs
@@ -643,9 +654,11 @@ (define-public qtile
       (list pkg-config
             python-flake8
             python-pep8-naming
-            python-psutil
+            python-pytest
             python-pytest-cov
-            python-setuptools-scm))
+            python-psutil
+            python-setuptools-scm
+            xorg-server-for-tests))
     (home-page "http://qtile.org")
     (synopsis "Hackable tiling window manager written and configured in Python")
     (description "Qtile is simple, small, and extensible.  It's easy to write
-- 
2.41.0





  parent reply	other threads:[~2024-05-09 23:23 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 22:40 [bug#70855] [PATCH 00/92] python-team patches Nicolas Graves via Guix-patches via
2024-05-09 22:52 ` [bug#70855] [PATCH 01/92] gnu: python-seaborn: Correct dependencies Nicolas Graves via Guix-patches via
2024-05-09 22:52   ` [bug#70855] [PATCH 02/92] gnu: python-transient: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:52   ` [bug#70855] [PATCH 03/92] gnu: python-black: " Nicolas Graves via Guix-patches via
2024-05-09 22:52   ` [bug#70855] [PATCH 04/92] gnu: python-isort: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 07/92] gnu: python-http-ece: Update to 1.2.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 09/92] gnu: python-aionotify: Update to 0.3.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 10/92] gnu: vdirsyncer: Move to pyproject-build-system and enable tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 12/92] gnu: python-docker-pycreds: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 13/92] gnu: Add xcffibgen Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 14/92] gnu: Add ghc-language-python Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 15/92] gnu: python-xcffib: Move to (gnu packages xorg) Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` Nicolas Graves via Guix-patches via [this message]
2024-05-09 22:53   ` [bug#70855] [PATCH 17/92] gnu: qtile: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 18/92] gnu: sshuttle: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 19/92] gnu: python-apiron: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 20/92] gnu: python-alembic: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 21/92] gnu: conda: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 22/92] gnu: conda: Reindent Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 23/92] gnu: python-conda-package-handling: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 24/92] gnu: python-scikit-rf: Fix tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 25/92] gnu: gunicorn: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 26/92] gnu: python-arrow: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 27/92] gnu: dynaconf: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 28/92] gnu: zulip-term: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 29/92] gnu: python-pypujs: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 31/92] gnu: python-nbval: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 32/92] gnu: python-asdf-astropy: Fix build Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 33/92] gnu: python-pytest-runner: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 34/92] gnu: gunicorn: Update to 21.2.0 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 35/92] gnu: python-unidecode: Update to 1.3.8 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 36/92] gnu: python-cbor2: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 37/92] gnu: python-tinycss: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 38/92] gnu: behave: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 39/92] gnu: python-cucumber-tag-expressions: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 40/92] gnu: python-flask-login: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 41/92] gnu: python-parse-type: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 42/92] gnu: python-amqp: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 43/92] gnu: python-cbor: Update home-page Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 44/92] gnu: python-sphinx: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 45/92] gnu: python-sphinx-autodoc-typehints: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 46/92] gnu: abjad: Update to 3.19 Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 47/92] gnu: abjad-ext-rmakers: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 48/92] gnu: abjad-ext-nauert: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 49/92] gnu: python-pytest-remotedata: Ignore failing test Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 50/92] gnu: python-pytest-toolbox: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 51/92] gnu: python-cairosvg: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 52/92] gnu: python-docspec-python: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 53/92] gnu: python-jaraco-classes: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 54/92] gnu: python-jaraco-context: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 55/92] gnu: python-jaraco-functools: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 56/92] gnu: python-jaraco-packaging: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 57/92] gnu: python-jaraco-test: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 58/92] gnu: python-nbstripout: " Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 59/92] gnu: Add ghc-xcb-types Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 60/92] gnu: python-sparse: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 61/92] gnu: python-pytest-enabler: Break dependency cycle Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 62/92] gnu: python-pint: Disable benchmark tests Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 63/92] gnu: python-apprise: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:53   ` [bug#70855] [PATCH 64/92] gnu: python-autoflake: Update to 2.3.1 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 65/92] gnu: python-orderedmultidict: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 66/92] gnu: python-shtab: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 67/92] gnu: python-flake8-isort: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 68/92] gnu: python-xmltodict: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 69/92] gnu: python-rich: Update to 13.7.1 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 70/92] gnu: python-cmd2: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 71/92] gnu: Add python-sphinx-autodoc-typehints-5 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 72/92] gnu: python-uqbar: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 73/92] gnu: python-uqbar: Upgrade to python-team branch Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 74/92] gnu: python-uqbar: Update to 0.6.9 Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 75/92] gnu: python-typeguard-4: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 76/92] gnu: python-zope-i18nmessageid: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 77/92] gnu: python-funsor: Ignore flaky test Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 78/92] gnu: borgmatic: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 79/92] gnu: tuir: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 80/92] gnu: python-pytest-trio: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 81/92] gnu: python-fenics-dijitso: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 82/92] gnu: python-pyan3: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 83/92] gnu: python-numpydoc: Move to pyproject-build-sytem Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 84/92] gnu: python-multidict: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 85/92] gnu: python-warcio: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 86/92] gnu: python-certauth: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 87/92] gnu: python-matplotlib: Ignore failing tests Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 88/92] gnu: python-qemu-qmp: Improve package style Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 89/92] gnu: python-qemu-qmp: Move to pyproject-build-system Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 90/92] gnu: python-cssselect2: " Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 91/92] gnu: python-notebook: Add python-jupyter-server native-input Nicolas Graves via Guix-patches via
2024-05-09 22:54   ` [bug#70855] [PATCH 92/92] build-system/pyproject: Add missing native-inputs Nicolas Graves via Guix-patches via
2024-05-23 21:17 ` bug#70855: [PATCH 00/92] python-team patches Nicolas Goaziou via Guix-patches via

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=20240509225530.24649-16-ngraves@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=70855@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /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).