{ lib , stdenv , buildPythonPackage , setuptools , isPy27 , fetchPypi , pkg-config , dbus , lndir , dbus-python , sip , pyqt5_sip , pyqt-builder , libsForQt5 , withConnectivity ? false , withMultimedia ? false , withWebKit ? false , withWebSockets ? false , withLocation ? false }: buildPythonPackage rec { pname = "PyQt5"; version = "5.15.7"; format = "pyproject"; disabled = isPy27; src = fetchPypi { inherit pname version; sha256 = "sha256-dVEhpSs6CMsHJ1wQ67lldtNuMg5XJZHbFs/bxVgQFZQ="; }; patches = [ # Fix some wrong assumptions by ./project.py # TODO: figure out how to send this upstream ./pyqt5-fix-dbus-mainloop-support.patch # confirm license when installing via pyqt5_sip ./pyqt5-confirm-license.patch ]; postPatch = # be more verbose '' cat >> pyproject.toml <