diff options
| author | dotlambda <github@dotlambda.de> | 2026-01-18 21:36:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 21:36:09 +0000 |
| commit | 0fead9703158bdb60cd35b20eac007624d70c0c7 (patch) | |
| tree | 46637be7ce693a43d2d2046333db9f2b40264dc0 | |
| parent | 652be573e81b4d6739cab2130c08c8ff2dbfa55e (diff) | |
| parent | 9aa49b24e1493f38a591ade80be24acefca464f0 (diff) | |
gns3-gui: use overrideScope for pyqt5 websockets override (#481412)
| -rw-r--r-- | pkgs/applications/networking/gns3/gui.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/applications/networking/gns3/gui.nix b/pkgs/applications/networking/gns3/gui.nix index 0ecbd3d277fe..451162118522 100644 --- a/pkgs/applications/networking/gns3/gui.nix +++ b/pkgs/applications/networking/gns3/gui.nix @@ -14,7 +14,14 @@ wrapQtAppsHook, }: -python3Packages.buildPythonApplication rec { +let + pythonPackages = python3Packages.overrideScope ( + final: prev: { + pyqt5 = prev.pyqt5.override { withWebSockets = true; }; + } + ); +in +pythonPackages.buildPythonApplication rec { pname = "gns3-gui"; inherit version; format = "setuptools"; @@ -28,20 +35,20 @@ python3Packages.buildPythonApplication rec { nativeBuildInputs = [ wrapQtAppsHook ]; - build-system = with python3Packages; [ setuptools ]; + build-system = with pythonPackages; [ setuptools ]; propagatedBuildInputs = [ qt5.qtwayland ]; dependencies = - with python3Packages; + with pythonPackages; [ distro jsonschema psutil + pyqt5 sentry-sdk setuptools sip - (pyqt5.override { withWebSockets = true; }) truststore ] ++ lib.optionals (pythonOlder "3.9") [ @@ -56,7 +63,7 @@ python3Packages.buildPythonApplication rec { doCheck = true; - checkInputs = with python3Packages; [ pytestCheckHook ]; + checkInputs = with pythonPackages; [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) |
