From 6caca57e47ee85f7643a3dcd5faa56d4bbecfb69 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 22 May 2026 22:18:14 +0200 Subject: [PATCH] python3Packages.qtile: 0.35.0 -> 0.36.0 --- .../python-modules/qtile/default.nix | 18 ++---- .../python-modules/qtile/fix-test-net.patch | 63 ------------------- 2 files changed, 4 insertions(+), 77 deletions(-) delete mode 100644 pkgs/development/python-modules/qtile/fix-test-net.patch diff --git a/pkgs/development/python-modules/qtile/default.nix b/pkgs/development/python-modules/qtile/default.nix index aff452f93978..debd651e5785 100644 --- a/pkgs/development/python-modules/qtile/default.nix +++ b/pkgs/development/python-modules/qtile/default.nix @@ -20,7 +20,6 @@ psutil, pulsectl-asyncio, pygobject3, - pytz, pyxdg, xcffib, extraPackages ? [ ], @@ -70,7 +69,7 @@ buildPythonPackage (finalAttrs: { pname = "qtile"; - version = "0.35.0"; + version = "0.36.0"; # nixpkgs-update: no auto update # should be updated alongside with `qtile-extras` @@ -80,14 +79,9 @@ buildPythonPackage (finalAttrs: { owner = "qtile"; repo = "qtile"; tag = "v${finalAttrs.version}"; - hash = "sha256-5XHzlS/Knw/VmVtnM7wToJ/F12GAa2lwdWuXBJHXnZM="; + hash = "sha256-yFh9h3djV52zdZjPYwOWaMzN9ZNhFdZYyxFJreoJBCk="; }; - patches = [ - # https://github.com/qtile/qtile/pull/5889 - ./fix-test-net.patch - ]; - build-system = [ setuptools setuptools-scm @@ -108,6 +102,7 @@ buildPythonPackage (finalAttrs: { pypaBuildFlags = [ "--config-setting=backend=wayland" + "--config-setting=FONTCONFIG=${lib.getLib fontconfig}/lib/libfontconfig.so" "--config-setting=GOBJECT=${lib.getLib glib}/lib/libgobject-2.0.so" "--config-setting=PANGO=${lib.getLib pango}/lib/libpango-1.0.so" "--config-setting=PANGOCAIRO=${lib.getLib pango}/lib/libpangocairo-1.0.so" @@ -125,7 +120,6 @@ buildPythonPackage (finalAttrs: { psutil pulsectl-asyncio pygobject3 - pytz pyxdg xcffib ]; @@ -154,10 +148,10 @@ buildPythonPackage (finalAttrs: { pytestCheckHook pytest-asyncio pytest-httpbin + pytest-rerunfailures pytest-xdist writableTmpDirAsHomeHook anyio - fontconfig gdk-pixbuf gobject-introspection isort @@ -172,10 +166,6 @@ buildPythonPackage (finalAttrs: { ''; disabledTests = [ - # ModuleNotFoundError: No module named 'libqtile' - # known issue upstream: https://github.com/qtile/qtile/issues/5883 - "test_identify_output" - # caused by dbus-fast trying to read '/var/lib/dbus/machine-id' "test_defaults" "test_device_actions" diff --git a/pkgs/development/python-modules/qtile/fix-test-net.patch b/pkgs/development/python-modules/qtile/fix-test-net.patch deleted file mode 100644 index 6230f22c665d..000000000000 --- a/pkgs/development/python-modules/qtile/fix-test-net.patch +++ /dev/null @@ -1,63 +0,0 @@ -From 71c70072524ee2fb2f4683861236894e51c50d6e Mon Sep 17 00:00:00 2001 -From: elParaguayo -Date: Tue, 24 Mar 2026 20:38:18 +0000 -Subject: [PATCH] Fix test_net.py - -The test uses a fake psutil module to get net statistics. However, -values are increased between tests and so will fail if tests are run in -a different order. We fix this by resetting stats between tests. ---- - test/widgets/test_net.py | 12 +++++++----- - 1 file changed, 7 insertions(+), 5 deletions(-) - -diff --git a/test/widgets/test_net.py b/test/widgets/test_net.py -index dcb0966c50..ea6a849a3a 100644 ---- a/test/widgets/test_net.py -+++ b/test/widgets/test_net.py -@@ -34,6 +34,8 @@ def __init__(self, up, down): - @pytest.fixture - def patch_net(fake_qtile, monkeypatch, fake_window): - def build_widget(**kwargs): -+ MockPsutil.up = 0 -+ MockPsutil.down = 0 - monkeypatch.setitem(sys.modules, "psutil", MockPsutil("psutil")) - from libqtile.widget import net - -@@ -62,15 +64,15 @@ def test_net_defaults(patch_net): - def test_net_single_interface(patch_net): - """Display single named interface""" - net2 = patch_net(interface="wlp58s0") -- assert net2.poll() == "wlp58s0: U 40.0kB 160.0kB D 1.2MB 4.8MB T 1.24MB 4.96MB" -+ assert net2.poll() == "wlp58s0: U 40.0kB 80.0kB D 1.2MB 2.4MB T 1.24MB 2.48MB" - - - def test_net_list_interface(patch_net): - """Display multiple named interfaces""" - net2 = patch_net(interface=["wlp58s0", "lo"]) - assert net2.poll() == ( -- "wlp58s0: U 40.0kB 240.0kB D 1.2MB 7.2MB T 1.24MB 7.44MB lo: U 40.0kB " -- "240.0kB D 1.2MB 7.2MB T 1.24MB 7.44MB" -+ "wlp58s0: U 40.0kB 80.0kB D 1.2MB 2.4MB T 1.24MB 2.48MB " -+ "lo: U 40.0kB 80.0kB D 1.2MB 2.4MB T 1.24MB 2.48MB" - ) - - -@@ -83,7 +85,7 @@ def test_net_invalid_interface(patch_net): - def test_net_use_bits(patch_net): - """Display all interfaces in bits rather than bytes""" - net4 = patch_net(use_bits=True) -- assert net4.poll() == "all: U 320.0kb 2.56Mb D 9.6Mb 76.8Mb T 9.92Mb 79.36Mb" -+ assert net4.poll() == "all: U 320.0kb 640.0kb D 9.6Mb 19.2Mb T 9.92Mb 19.84Mb" - - - def test_net_convert_zero_b(patch_net): -@@ -95,7 +97,7 @@ def test_net_convert_zero_b(patch_net): - def test_net_use_prefix(patch_net): - """Tests `prefix` configurable option""" - net6 = patch_net(prefix="M") -- assert net6.poll() == "all: U 0.04MB 440.0kB D 1.2MB 13.2MB T 1.24MB 13.64MB" -+ assert net6.poll() == "all: U 0.04MB 80.0kB D 1.2MB 2.4MB T 1.24MB 2.48MB" - - - def test_net_missing_interface(patch_net): -