anchor.diff:      ++ lib.optional withConnectivity "PyQt5.QtConnectivity"
     ;
   
  -  enableParallelBuilding = true;
  -
     meta = with lib; {
       description = "Python bindings for Qt5";
       homepage    = "https://riverbankcomputing.com/";
  
positive.code: in buildPythonPackage rec {
    pname = "PyQt5";
    version = "5.15.4";
    format = if isPy3k then "pyproject" else "other";
  
    src = pythonPackages.fetchPypi {
      inherit pname version;
  
negative.code:     qtbase
      qtsvg
      qtdeclarative
      pyqt-builder
    ]
      ++ lib.optional withConnectivity qtconnectivity
      ++ lib.optional withWebKit qtwebkit
      ++ lib.optional withWebSockets qtwebsockets
    ;
  
    propagatedBuildInputs = [
      dbus-python
      pyqt5_sip
    ];
  
    patches = [
      # Fix some wrong assumptions by ./project.py
      # TODO: figure out how to send this upstream
      ./pyqt5-fix-dbus-mainloop-support.patch
    ];
  