push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,122 @@
{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
gobject-introspection,
meson,
ninja,
perl,
gettext,
gtk-doc,
libxslt,
docbook-xsl-nons,
docbook_xml_dtd_412,
glib,
gusb,
dbus,
polkit,
nss,
pam,
systemd,
libfprint,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fprintd";
version = "1.94.5";
outputs = [
"out"
"devdoc"
];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = "fprintd";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-aGIz50S0zfE3rV6QJp8iQz3uUVn8WAL68KU70j8GyOU=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
perl # for pod2man
gettext
gtk-doc
python3
libxslt
dbus
docbook-xsl-nons
docbook_xml_dtd_412
];
buildInputs = [
glib
polkit
nss
pam
systemd
libfprint
];
nativeCheckInputs = with python3.pkgs; [
gobject-introspection # for setup hook
python-dbusmock
dbus-python
pygobject3
pycairo
pypamtest
gusb # Required by libfprints typelib
];
mesonFlags = [
"-Dgtk_doc=true"
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
"-Dsysconfdir=${placeholder "out"}/etc"
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
"-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
];
PKG_CONFIG_DBUS_1_INTERFACES_DIR = "${placeholder "out"}/share/dbus-1/interfaces";
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
PKG_CONFIG_DBUS_1_DATADIR = "${placeholder "out"}/share";
# FIXME: Ugly hack for tests to find libpam_wrapper.so
LIBRARY_PATH = lib.makeLibraryPath [ python3.pkgs.pypamtest ];
mesonCheckFlags = [
# PAM related checks are timing out
"--no-suite"
"fprintd:TestPamFprintd"
];
patches = [
# Skip flaky test "test_removal_during_enroll"
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/129
./skip-test-test_removal_during_enroll.patch
];
postPatch = ''
patchShebangs \
po/check-translations.sh \
tests/unittest_inspector.py
# Stop tests from failing due to unhandled GTasks uncovered by GLib 2.76 bump.
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151
substituteInPlace tests/fprintd.py \
--replace "env['G_DEBUG'] = 'fatal-criticals'" ""
substituteInPlace tests/meson.build \
--replace "'G_DEBUG=fatal-criticals'," ""
'';
meta = {
homepage = "https://fprint.freedesktop.org/";
description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
})

View File

@@ -0,0 +1,12 @@
diff --git a/tests/fprintd.py b/tests/fprintd.py
index 370d7bb..4e4d78c 100644
--- a/tests/fprintd.py
+++ b/tests/fprintd.py
@@ -1609,6 +1609,7 @@ class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
time.sleep(1)
def test_removal_during_enroll(self):
+ self.skipTest("flaky test")
if not self._has_hotplug:
self.skipTest("libfprint is too old for hotplug")