python3Packages.dbus-python: fix cross

Looks for dbus-run-session when tests are enabled, which is only
provided through nativeCheckInputs (or buildInputs when not cross
compiling).

Fixes: 275ba0f1cb ("python311Packages.dbus-python: 1.2.18 -> 1.3.2")
This commit is contained in:
Alyssa Ross
2024-05-10 17:08:36 +02:00
parent 0c9055e823
commit 6ffea0de4c
@@ -15,7 +15,7 @@
, dbus-glib
}:
buildPythonPackage rec {
lib.fix (finalPackage: buildPythonPackage rec {
pname = "dbus-python";
version = "1.3.2";
pyproject = true;
@@ -67,6 +67,10 @@ buildPythonPackage rec {
"-Cbuild-dir=_meson-build"
];
mesonFlags = [
(lib.mesonBool "tests" finalPackage.doInstallCheck)
];
# workaround bug in meson-python
# https://github.com/mesonbuild/meson-python/issues/240
postInstall = ''
@@ -98,4 +102,4 @@ buildPythonPackage rec {
platforms = dbus.meta.platforms;
maintainers = with maintainers; [ ];
};
}
})