No module named 'PyQt6'

I’m trying to install Emacs Application Framework, but it requires PyQt6. Is this available in 22.05 or even in unstable?

https://github.com/emacs-eaf/emacs-application-framework/wiki/NixOS

Those instructions on their site are outdated, cause it now requires PyQt6

Traceback (most recent call last):
  File "/home/b0ef/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 25, in <module>
    from PyQt6 import QtWebEngineWidgets as NeverUsed # noqa
ModuleNotFoundError: No module named 'PyQt6'

Process *eaf* exited abnormally with code 1
Traceback (most recent call last):
  File "/home/b0ef/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 25, in <module>
    from PyQt6 import QtWebEngineWidgets as NeverUsed # noqa
ModuleNotFoundError: No module named 'PyQt6'

Process *eaf* exited abnormally with code 1

I tried pyqt6 here, but that didn’t work. pyqt5 works fine.

let
  my-python-packages = python-packages: with python-packages; [
    pandas
    requests
  # for eaf
      pyqt6 sip qtpy
      pyqtwebengine
      epc lxml
      # eaf-file-browser
      qrcode
      # eaf-browser
      pysocks
      # eaf-pdf-viewer
      pymupdf
      # eaf-file-manager
      pypinyin
      # eaf-system-monitor
      psutil
      # eaf-markdown-previewer
      retry
      markdown
    # other python packages you want
  ];

It does exist in unstable yes, not sure if it ever got backported to the last release. It may not have been straightforward to do so, as it was a bit of a saga (3+ PRs) to finally get it merged so I wouldn’t blame anyone if it wasn’t.

ok, I figured out how to pull it from unstable;). Thanks.

with pkgs;
let
  my-python-packages = python-packages: with python-packages; [
    pandas
    requests
    pyqt6 sip qtpy qt6.qtwebengine epc lxml # for eaf
    qrcode # eaf-file-browser
    pysocks # eaf-browser
    pymupdf # eaf-pdf-viewer
    pypinyin # eaf-file-manager
    psutil # eaf-system-monitor
    retry # eaf-markdown-previewer
    markdown
  ];
  python-with-my-packages = unstable.python3.withPackages my-python-packages;

Now I’m stuck on a new problem;)

Process *eaf* exited abnormally with code 1
Traceback (most recent call last):\0
  File "/home/b0ef/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 25, in <module>
    from PyQt6 import QtWebEngineWidgets as NeverUsed # noqa
ImportError: cannot import name 'QtWebEngineWidgets' from 'PyQt6' (/nix/store/awam08nk598vvxj5v1sng0jpn7yj10kk-python3-3.10.8-env/lib/python3.10/site-packages/PyQt6/__init__.py)

pyqt-webengine is extremely heavy and thus is split out into its own separate package. If you need it, then add pyqt6-webengine to your build deps as well.

ok, so that’s the confusion;)
I need both qt6.qtwebengine and pyqt6-webengine.
Can’t by dyslectic here;)
Great, thanks, it works;)