python3Packages.dbus-next: add missing preCheck/postCheck hooks

This commit is contained in:
Stefan Frijters
2024-08-12 17:16:58 +02:00
parent ad91a23e66
commit bb9591b7bc
@@ -37,9 +37,11 @@ buildPythonPackage rec {
# test_tcp_connection_with_forwarding fails due to dbus
# creating unix socket anyway on v1.14.4
checkPhase = ''
runHook preCheck
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf \
${python.interpreter} -m pytest -sv --cov=dbus_next \
-k "not test_peer_interface and not test_tcp_connection_with_forwarding"
runHook postCheck
'';
meta = with lib; {