From 46bcc0d4984c367411533bd52b377244733e8b7d Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sun, 12 Nov 2017 18:23:06 +0100 Subject: [PATCH] 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. --- pkgs/development/python-modules/pyqt/5.x.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyqt/5.x.nix b/pkgs/development/python-modules/pyqt/5.x.nix index 9c1489aba02f..2db0c4412544 100644 --- a/pkgs/development/python-modules/pyqt/5.x.nix +++ b/pkgs/development/python-modules/pyqt/5.x.nix @@ -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 ];