2021-01-19 06:50:56 +00:00
|
|
|
{ lib, pythonPackages, pkg-config
|
2019-02-25 16:21:32 +00:00
|
|
|
, qmake, qtbase, qtsvg, qtwebengine
|
2019-08-17 20:24:46 +00:00
|
|
|
, wrapQtAppsHook
|
2019-02-25 16:21:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-05-17 15:27:26 +00:00
|
|
|
inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 enum34 sip pyqt-builder;
|
2019-02-25 16:21:32 +00:00
|
|
|
in buildPythonPackage rec {
|
2020-04-04 02:55:03 +00:00
|
|
|
pname = "PyQtWebEngine";
|
2021-03-18 07:30:26 +00:00
|
|
|
version = "5.15.4";
|
2021-05-17 15:27:26 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
2019-02-25 16:21:32 +00:00
|
|
|
|
2020-04-04 02:55:03 +00:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-18 07:30:26 +00:00
|
|
|
sha256 = "06fc35hzg346a9c86dk7vzm1fakkgzn5l52jfq3bix3587sjip6f";
|
2019-02-25 16:21:32 +00:00
|
|
|
};
|
|
|
|
|
2021-05-17 15:27:26 +00:00
|
|
|
postPatch = ''
|
2021-05-17 09:30:30 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]"
|
|
|
|
'';
|
|
|
|
|
2019-02-25 16:21:32 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-02-25 16:21:32 +00:00
|
|
|
qmake
|
|
|
|
sip
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qtwebengine
|
2021-05-17 15:27:26 +00:00
|
|
|
pyqt-builder
|
|
|
|
];
|
2019-02-25 16:21:32 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
sip
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qtwebengine
|
|
|
|
];
|
|
|
|
|
2021-05-17 15:27:26 +00:00
|
|
|
propagatedBuildInputs = [ pyqt5 ];
|
2019-02-25 16:21:32 +00:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-05-17 15:27:26 +00:00
|
|
|
# Avoid running qmake, which is in nativeBuildInputs
|
|
|
|
dontConfigure = true;
|
2019-02-25 16:21:32 +00:00
|
|
|
|
2021-05-17 09:30:30 +00:00
|
|
|
# Checked using pythonImportsCheck
|
|
|
|
doCheck = false;
|
2019-02-25 16:21:32 +00:00
|
|
|
|
2021-05-17 09:30:30 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"PyQt5.QtWebEngine"
|
|
|
|
"PyQt5.QtWebEngineWidgets"
|
|
|
|
];
|
2019-02-25 16:21:32 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-08-17 20:24:46 +00:00
|
|
|
passthru = {
|
|
|
|
inherit wrapQtAppsHook;
|
|
|
|
};
|
|
|
|
|
2019-02-25 16:21:32 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for Qt5";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.riverbankcomputing.co.uk";
|
2019-02-25 16:21:32 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.mesaPlatforms;
|
|
|
|
};
|
|
|
|
}
|