{ 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 , withSerialPort ? false , withTools ? false }: buildPythonPackage rec { pname = "PyQt5"; version = "5.15.9"; format = "pyproject"; disabled = isPy27; src = fetchPypi { inherit pname version; hash = "sha256-3EHoQBqQ3D4raStBG9VJKrVZrieidCTu1L05FVZOxMA="; }; 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 <