Merge pull request #327656 from eclairevoyant/open-fprintd

open-fprintd: add gapps wrapper
This commit is contained in:
Artturin 2024-07-18 19:56:27 +03:00 committed by GitHub
commit b09211b253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"
'';