python312Packages.dbus-fast: run (almost) all tests
This commit is contained in:
parent
40fe7cac57
commit
7894402c49
@ -3,11 +3,13 @@
|
|||||||
async-timeout,
|
async-timeout,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
cython,
|
cython,
|
||||||
|
dbus,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
poetry-core,
|
poetry-core,
|
||||||
|
pytest,
|
||||||
pytest-asyncio,
|
pytest-asyncio,
|
||||||
pytest-cov-stub,
|
pytest-cov-stub,
|
||||||
pytestCheckHook,
|
python,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
setuptools,
|
setuptools,
|
||||||
}:
|
}:
|
||||||
@ -39,9 +41,10 @@ buildPythonPackage rec {
|
|||||||
dependencies = [ async-timeout ];
|
dependencies = [ async-timeout ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
dbus
|
||||||
|
pytest
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-cov-stub
|
pytest-cov-stub
|
||||||
pytestCheckHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
@ -51,47 +54,16 @@ buildPythonPackage rec {
|
|||||||
"dbus_fast.message"
|
"dbus_fast.message"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
checkPhase = ''
|
||||||
# Test require a running Dbus instance
|
runHook preCheck
|
||||||
"test_aio_big_message"
|
|
||||||
"test_aio_properties"
|
# test_peer_interface times out
|
||||||
"test_aio_proxy_object"
|
dbus-run-session \
|
||||||
"test_bus_disconnect_before_reply"
|
--config-file=${dbus}/share/dbus-1/session.conf \
|
||||||
"test_error_handling"
|
${python.interpreter} -m pytest -k "not test_peer_interface"
|
||||||
"test_export_alias"
|
|
||||||
"test_export_introspection"
|
runHook postCheck
|
||||||
"test_export_unexport"
|
'';
|
||||||
"test_fast_disconnect"
|
|
||||||
"test_glib_big_message"
|
|
||||||
"test_high_level_service_fd_passing"
|
|
||||||
"test_interface_add_remove_signal"
|
|
||||||
"test_introspectable_interface"
|
|
||||||
"test_methods"
|
|
||||||
"test_multiple_flags_in_message"
|
|
||||||
"test_name_requests"
|
|
||||||
"test_object_manager"
|
|
||||||
"test_peer_interface"
|
|
||||||
"test_property_changed_signal"
|
|
||||||
"test_property_changed_signal"
|
|
||||||
"test_property_methods"
|
|
||||||
"test_sending_file_descriptor_low_level"
|
|
||||||
"test_sending_file_descriptor_with_proxy"
|
|
||||||
"test_sending_messages_between_buses"
|
|
||||||
"test_sending_signals_between_buses"
|
|
||||||
"test_signals"
|
|
||||||
"test_standard_interface_properties"
|
|
||||||
"test_standard_interfaces"
|
|
||||||
"test_tcp_connection_with_forwarding"
|
|
||||||
"test_unexpected_disconnect"
|
|
||||||
# NameError: name '_cast_uint32_native' is not defined
|
|
||||||
"test_unmarshall_bluez_interfaces_added_message"
|
|
||||||
"test_unmarshall_bluez_interfaces_removed_message"
|
|
||||||
"test_unmarshall_bluez_message"
|
|
||||||
"test_unmarshall_bluez_properties_changed_with_service_data"
|
|
||||||
"test_unmarshall_can_resume"
|
|
||||||
"test_unmarshalling_with_table"
|
|
||||||
"test_ay_buffer"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Faster version of dbus-next";
|
description = "Faster version of dbus-next";
|
||||||
|
Loading…
Reference in New Issue
Block a user