1 { lib, pythonPackages, pkg-config
2 , qmake, qtbase, qtsvg, qtwebengine
7 inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 enum34 sip pyqt-builder;
8 in buildPythonPackage rec {
9 pname = "PyQtWebEngine";
15 src = pythonPackages.fetchPypi {
16 inherit pname version;
17 sha256 = "06fc35hzg346a9c86dk7vzm1fakkgzn5l52jfq3bix3587sjip6f";
21 substituteInPlace pyproject.toml \
22 --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]"
25 outputs = [ "out" "dev" ];
35 pythonPackages.setuptools
45 propagatedBuildInputs = [ pyqt5 ];
47 dontWrapQtApps = true;
49 # Avoid running qmake, which is in nativeBuildInputs
52 # Checked using pythonImportsCheck
55 pythonImportsCheck = [
57 "PyQt5.QtWebEngineWidgets"
60 enableParallelBuilding = true;
63 inherit wrapQtAppsHook;
67 description = "Python bindings for Qt5";
68 homepage = "http://www.riverbankcomputing.co.uk";
69 license = licenses.gpl3;
70 platforms = lib.lists.intersectLists qtwebengine.meta.platforms platforms.mesaPlatforms;