14 buildPythonPackage rec {
15 pname = "PyQt6_WebEngine";
19 disabled = pythonOlder "3.6";
22 inherit pname version;
23 hash = "sha256-i6nbVsTBgaKi+rFnPKNeW2PcaRE/CFAn3cQ8cQttbuk=";
26 # fix include path and increase verbosity
29 '/\[tool.sip.project\]/a\
31 sip-include-dirs = [\"${pyqt6}/${python.sitePackages}/PyQt6/bindings\"]' \
35 enableParallelBuilding = true;
36 # HACK: paralellize compilation of make calls within pyqt's setup.py
37 # pkgs/stdenv/generic/setup.sh doesn't set this for us because
38 # make gets called by python code and not its build phase
39 # format=pyproject means the pip-build-hook hook gets used to build this project
40 # pkgs/development/interpreters/python/hooks/pip-build-hook.sh
41 # does not use the enableParallelBuilding flag
43 export MAKEFLAGS+=" -j$NIX_BUILD_CORES"
46 outputs = [ "out" "dev" ];
48 dontWrapQtApps = true;
50 nativeBuildInputs = with qt6Packages; [
59 buildInputs = with qt6Packages; [
63 propagatedBuildInputs = [
73 # Checked using pythonImportsCheck, has no tests
76 pythonImportsCheck = [
77 "PyQt6.QtWebEngineCore"
78 "PyQt6.QtWebEngineQuick"
79 "PyQt6.QtWebEngineWidgets"
83 description = "Python bindings for Qt6 WebEngine";
84 homepage = "https://riverbankcomputing.com/";
85 license = licenses.gpl3Only;
86 platforms = platforms.mesaPlatforms;
87 maintainers = with maintainers; [ LunNova nrdxp ];