{ lib , stdenv , buildPythonPackage , isPy27 , fetchPypi , pkg-config , dbus , lndir , setuptools , dbus-python , sip , pyqt6-sip , pyqt-builder , qt6Packages , pythonOlder , withMultimedia ? true , withWebSockets ? true # FIXME: Once QtLocation is available for Qt6 enable this # https://bugreports.qt.io/browse/QTBUG-96795 #, withLocation ? true # Not currently part of PyQt6 #, withConnectivity ? true , withPrintSupport ? true , cups }: buildPythonPackage rec { pname = "PyQt6"; version = "6.5.0"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; hash = "sha256-uXy0vpssiZeQTqZozzsKSuWCIZb3eSWQ0F7N5iFqn7w="; }; patches = [ # Fix some wrong assumptions by ./project.py # TODO: figure out how to send this upstream # FIXME: make a version for PyQt6? # ./pyqt5-fix-dbus-mainloop-support.patch # confirm license when installing via pyqt6_sip ./pyqt5-confirm-license.patch ]; # be more verbose postPatch = '' cat >> pyproject.toml <