autokey: fix No GSettings schemas are installed and clean wrapping

Remove unnecessary wrapping stuff and fix
"No GSettings schemas are installed"
fatal error when opening the main window.

fixes #137417
This commit is contained in:
Mario Hros 2022-07-04 22:46:43 +02:00
parent 9cf60d2e98
commit 3a96c0a4f2

View file

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
# Tests appear to be broken with import errors within the project structure # Tests appear to be broken with import errors within the project structure
doCheck = false; doCheck = false;
nativeBuildInputs = [ wrapGAppsHook ]; nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];
buildInputs = [ buildInputs = [
gobject-introspection gobject-introspection
@ -38,19 +38,9 @@ python3Packages.buildPythonApplication rec {
pygobject3 pygobject3
]; ];
dontWrapGapps = true;
pythonPath = with python3Packages; requiredPythonModules [ dbus-python xlib pygobject3 ];
postInstall = '' postInstall = ''
rm $out/bin/autokey-qt # remove Qt version which we currently do not support
buildPythonPath "$out $pythonPath" rm $out/bin/autokey-qt $out/share/applications/autokey-qt.desktop
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
# for autokey-shell ModuleNotFoundError: No module named 'autokey'
--prefix "PYTHONPATH" ":" "$out/lib/${python3Packages.python.libPrefix}/site-packages"
--prefix "PYTHONPATH" ":" "$program_PYTHONPATH"
)
''; '';
meta = { meta = {