From f407e4d4ade4d3ccf484fdc885706b55ea44ce5e Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Wed, 24 Nov 2021 17:08:04 -0500 Subject: [PATCH] rqt-gui: include patch to fix compatibility with Python 3.9 --- distros/distro-overlay.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/distros/distro-overlay.nix b/distros/distro-overlay.nix index 9071eff8f5..56d767122d 100644 --- a/distros/distro-overlay.nix +++ b/distros/distro-overlay.nix @@ -286,8 +286,16 @@ let }); rqt-gui = rosSuper.rqt-gui.overrideAttrs ({ - nativeBuildInputs ? [], ... + patches ? [], nativeBuildInputs ? [], ... }: { + # Fix usage of removed ElementTree.getiterator() method + # https://github.com/ros-visualization/rqt/pull/241 + patches = patches ++ [ (self.fetchpatch { + url = "https://github.com/ros-visualization/rqt/commit/aaf8da523b32307ad906e48fa977eff1779b0154.patch"; + stripLen = 1; + sha256 = "1p2rh2l74plq5aa319mxgi0hqm2if0qk3mr5fz8zif1zpgz4wvh3"; + }) ]; + dontWrapQtApps = false; nativeBuildInputs = nativeBuildInputs ++ [ self.qt5.wrapQtAppsHook ]; postFixup = ''