19 inherit (darwin) autoSignDarwinBinariesHook;
23 pname = "pyqtwebengine";
30 pname = "PyQtWebEngine";
32 hash = "sha256-8SGsbkovlqwolhm8/Df2Tmg2LySjRlU/XWxC76Qiik0=";
36 substituteInPlace pyproject.toml \
37 --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]"
49 libsForQt5.wrapQtAppsHook
51 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ sip ]
52 ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
53 python.pythonOnBuildForHost.pkgs.sip
58 libsForQt5.qtwebengine
62 ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ libsForQt5.qtdeclarative ]
63 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
64 autoSignDarwinBinariesHook
72 libsForQt5.qtwebengine
74 ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
75 libsForQt5.qtwebchannel
76 libsForQt5.qtdeclarative
79 propagatedBuildInputs = [ pyqt5 ];
81 dontWrapQtApps = true;
83 # Avoid running qmake, which is in nativeBuildInputs
86 # Checked using pythonImportsCheck
89 pythonImportsCheck = [
91 "PyQt5.QtWebEngineWidgets"
94 enableParallelBuilding = true;
97 inherit (libsForQt5) wrapQtAppsHook;
101 description = "Python bindings for Qt5";
102 homepage = "http://www.riverbankcomputing.co.uk";
103 license = lib.licenses.gpl3;
104 hydraPlatforms = lib.lists.intersectLists libsForQt5.qtwebengine.meta.platforms mesa.meta.platforms;
107 // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) {
108 # TODO: figure out why the env hooks aren't adding these inclusions automatically
109 env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [
110 "-I${lib.getDev libsForQt5.qtbase}/include/QtPrintSupport/"
111 "-I${lib.getDev libsForQt5.qtwebchannel}/include/QtWebChannel/"