{ 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 }: buildPythonPackage rec { pname = "PyQt6"; version = "6.4.0"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; sha256 = "sha256-kTkkab4fSRkF+p54+k5AWaiathbd8uz9UlvB1lwmu5M="; }; 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 <