open-fprintd: add gapps wrapper

This commit is contained in:
éclairevoyant 2024-07-16 09:20:52 -04:00
parent c6948af6ae
commit 2b5a6f021e
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, python3Packages }:
{ lib, fetchFromGitHub, python3Packages, gobject-introspection, wrapGAppsNoGuiHook }:
python3Packages.buildPythonPackage rec {
pname = "open-fprintd";
@ -11,6 +11,8 @@ python3Packages.buildPythonPackage rec {
sha256 = "sha256-uVFuwtsmR/9epoqot3lJ/5v5OuJjuRjL7FJF7oXNDzU=";
};
nativeBuildInputs = [ wrapGAppsNoGuiHook gobject-introspection ];
propagatedBuildInputs = with python3Packages; [ dbus-python pygobject3 ];
checkInputs = with python3Packages; [ dbus-python ];
@ -30,6 +32,9 @@ python3Packages.buildPythonPackage rec {
--replace /usr/lib/open-fprintd "$out/lib/open-fprintd"
'';
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
postFixup = ''
wrapPythonProgramsIn "$out/lib/open-fprintd" "$out $pythonPath"
'';