From 80ab54b3afb73a3563f1d5bf48269191f1a7c52e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 25 Sep 2023 09:17:11 +0200 Subject: [PATCH] python3Packages.qtile: 0.22.1 -> 0.23.0 - Updated version and hash - Added pulsectl-asyncio dependency and removed pulseaudio as those FFI bindings are now handled by pulsectl-asyncio - Added libdrm and pixman patches - Added xcbutilwm otherwise we get a header not found - Removed wlroots 0.15 pin as qtile now uses wlroots 0.16 --- pkgs/development/python-modules/qtile/default.nix | 15 +++++++++++---- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/qtile/default.nix b/pkgs/development/python-modules/qtile/default.nix index 1d8aaa55ba6..dd45055c420 100644 --- a/pkgs/development/python-modules/qtile/default.nix +++ b/pkgs/development/python-modules/qtile/default.nix @@ -5,13 +5,15 @@ , dbus-next , dbus-python , glib +, libdrm , libinput , libxkbcommon , mpd2 , pango +, pixman , pkg-config , psutil -, pulseaudio +, pulsectl-asyncio , pygobject3 , python-dateutil , pywayland @@ -22,19 +24,20 @@ , wayland , wlroots , xcbutilcursor +, xcbutilwm , xcffib , xkbcommon }: buildPythonPackage rec { pname = "qtile"; - version = "0.22.1"; + version = "0.23.0"; src = fetchFromGitHub { owner = "qtile"; repo = "qtile"; rev = "v${version}"; - hash = "sha256-HOyExVKOqZ4OeNM1/AiXQeiUV+EbSJLEjWEibm07ff8="; + hash = "sha256-WxnpkKqYGGEsFTt/1iCSiCzdESJP6HFJ6BztaMsMbYo="; }; patches = [ @@ -48,6 +51,9 @@ buildPythonPackage rec { --replace libpango-1.0.so.0 ${pango.out}/lib/libpango-1.0.so.0 substituteInPlace libqtile/backend/x11/xcursors.py \ --replace libxcb-cursor.so.0 ${xcbutilcursor.out}/lib/libxcb-cursor.so.0 + substituteInPlace libqtile/backend/wayland/cffi/build.py \ + --replace /usr/include/pixman-1 ${lib.getDev pixman}/include \ + --replace /usr/include/libdrm ${lib.getDev libdrm}/include/libdrm ''; SETUPTOOLS_SCM_PRETEND_VERSION = version; @@ -66,12 +72,12 @@ buildPythonPackage rec { dbus-next mpd2 psutil + pulsectl-asyncio pyxdg pygobject3 pywayland pywlroots xkbcommon - pulseaudio ]; buildInputs = [ @@ -79,6 +85,7 @@ buildPythonPackage rec { wayland wlroots libxkbcommon + xcbutilwm ]; doCheck = false; # Requires X server #TODO this can be worked out with the existing NixOS testing infrastructure. diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ce1944ea8d8..d7f0589dcaf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11042,7 +11042,7 @@ self: super: with self; { qtconsole = callPackage ../development/python-modules/qtconsole { }; qtile = callPackage ../development/python-modules/qtile { - wlroots = pkgs.wlroots_0_15; + wlroots = pkgs.wlroots_0_16; }; qtile-extras = callPackage ../development/python-modules/qtile-extras { };