about summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-5/modules
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-09-27 23:44:08 +0900
committernatsukium <tomoya.otabi@gmail.com>2023-09-27 23:45:00 +0900
commitea1f9e3d19000f914e44c5f3aed9ffb5fc9e8db3 (patch)
tree7a96f2134c88f6ae948cca1ebf83ffb15cf4b0c7 /pkgs/development/libraries/qt-5/modules
parent82a7af66ba4b6bd39370958dcbacf38ed509e19b (diff)
qt5.qtwebengine: fix compatibility with python3.11
Diffstat (limited to 'pkgs/development/libraries/qt-5/modules')
-rw-r--r--pkgs/development/libraries/qt-5/modules/qtwebengine.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
index 7326fa54fd38a..777430af0217f 100644
--- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
+++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix
@@ -57,6 +57,12 @@ qtModule {
 
       # TODO: be more precise
       patchShebangs .
+
+      # Fix compatibility with python3.11
+      substituteInPlace tools/metrics/ukm/ukm_model.py \
+        --replace "r'^(?i)(|true|false)$'" "r'(?i)^(|true|false)$'"
+      substituteInPlace tools/grit/grit/util.py \
+        --replace "mode = 'rU'" "mode = 'r'"
     )
   ''
   # Prevent Chromium build script from making the path to `clang` relative to