pythonPackages.pyqt5: Add optional qtwebsockets support

This is e.g. required for gns3-gui 2.1.0. But it seems to break the
build for Python 2.7.
This commit is contained in:
Michael Weiss 2017-11-12 18:23:06 +01:00
parent 9ea242c617
commit 46bcc0d498

View file

@ -1,5 +1,7 @@
{ lib, fetchurl, pythonPackages, pkgconfig, qtbase, qtsvg, qtwebkit, qtwebengine, dbus_libs
, lndir, makeWrapper, qmake }:
{ lib, fetchurl, pythonPackages, pkgconfig, makeWrapper, qmake
, lndir, qtbase, qtsvg, qtwebkit, qtwebengine, dbus_libs
, withWebSockets ? false, qtwebsockets
}:
let
version = "5.9";
@ -25,7 +27,7 @@ in buildPythonPackage {
buildInputs = [
lndir qtbase qtsvg qtwebkit qtwebengine dbus_libs
];
] ++ lib.optional withWebSockets qtwebsockets;
propagatedBuildInputs = [ sip ];