From feaf293791c34f56957fd2bd311c7913baf5503b Mon Sep 17 00:00:00 2001 From: lucasew Date: Sun, 28 Jun 2026 15:10:51 -0300 Subject: [PATCH] i3pystatus: 3.35-unstable-2025-06-24 -> 3.35-unstable-2026-04-21 Propagate requests and dbus-python for new hassio/kdeconnect/element_call modules. Add mock for tests. Disable four element_call tests that fail because upstream constructs ElementCall without Module.__init__. https://nixpkgs-update-logs.nix-community.org/i3pystatus/2026-06-22.log Assisted-by: Grok Build / Grok 4.3 (xAI) --- pkgs/by-name/i3/i3pystatus/package.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/i3/i3pystatus/package.nix b/pkgs/by-name/i3/i3pystatus/package.nix index 46c1d229cee5..55465c92de41 100644 --- a/pkgs/by-name/i3/i3pystatus/package.nix +++ b/pkgs/by-name/i3/i3pystatus/package.nix @@ -14,7 +14,7 @@ python3Packages.buildPythonApplication rec { # i3pystatus moved to rolling release: # https://github.com/enkore/i3pystatus/issues/584 - version = "3.35-unstable-2025-06-24"; + version = "3.35-unstable-2026-04-21"; pname = "i3pystatus"; pyproject = true; build-system = [ python3Packages.setuptools ]; @@ -22,8 +22,8 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "enkore"; repo = "i3pystatus"; - rev = "e8e03934d95658c85fa9f594987dac0481ca26c9"; - hash = "sha256-uAt6jxNAUR9txyPtHS4BRtu8Z5QaP6uqFg0sROf356c="; + rev = "045d5f09220ccec1146a220619ff80b1077206a4"; + hash = "sha256-K6sCII8qw0JLcMw5QVCY0RCu0O55MlEKFQXDY96V3NM="; }; patches = [ @@ -44,12 +44,20 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = [ python3Packages.pytestCheckHook + python3Packages.mock writableTmpDirAsHomeHook ]; - checkInputs = [ python3Packages.requests ]; + # Upstream tests construct ElementCall via __new__ without Module.__init__, so + # output/_output is never set (AttributeError on .output after run()). + disabledTests = [ + "test_active_output" + "test_empty_output" + "test_error_output" + "test_format_includes_room_alias" + ]; - propagatedBuildInputs = + dependencies = with python3Packages; [ keyring @@ -58,6 +66,8 @@ python3Packages.buildPythonApplication rec { psutil basiciw pygobject3 + requests + dbus-python ] ++ extraLibs;