Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Commit 15bfdf8

Browse files
doronbeharFRidh
authored andcommitted
pythonPackages.pyqtwebengine: Apply qt5.14 patch only if needed
Since we now use qt5.15 in all python modules (defaulting to the same qt5 used in all-packages.nix), That patch is not required, but it will be needed if qt5.14 is used if pythonInterpreters is overridden, which is likely to happen like it happend to qutebrowser for instance. See: NixOS@2667af4
1 parent 4bccbd9 commit 15bfdf8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • pkgs/development/python-modules/pyqtwebengine

pkgs/development/python-modules/pyqtwebengine/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ let
77

88
inherit (pythonPackages) buildPythonPackage python isPy3k pyqt5 enum34;
99
inherit (pyqt5) sip;
10+
# source: https://www.riverbankcomputing.com/pipermail/pyqt/2020-June/042985.html
11+
patches = lib.optional (lib.hasPrefix "5.14" pyqt5.version)
12+
[ ./fix-build-with-qt-514.patch ]
13+
;
1014

1115
in buildPythonPackage rec {
1216
pname = "PyQtWebEngine";
@@ -18,10 +22,7 @@ in buildPythonPackage rec {
1822
sha256 = "0xdzhl07x3mzfnr5cf4d640168vxi7fyl0fz1pvpbgs0irl14237";
1923
};
2024

21-
patches = [
22-
# source: https://www.riverbankcomputing.com/pipermail/pyqt/2020-June/042985.html
23-
./fix-build-with-qt-514.patch
24-
];
25+
inherit patches;
2526

2627
outputs = [ "out" "dev" ];
2728

0 commit comments

Comments
 (0)