2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
2022-09-30 11:47:45 +00:00
|
|
|
, async-timeout
|
2022-09-22 12:36:57 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-10-06 18:32:54 +00:00
|
|
|
, setuptools
|
2022-09-22 12:36:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dbus-fast";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.29.1";
|
2022-09-22 12:36:57 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bluetooth-Devices";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-GqL6PZlqFi5Es8VYeqeTsXX6j5fol2JzcosFtVCQn60=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2022-10-06 18:32:54 +00:00
|
|
|
setuptools
|
2022-09-22 12:36:57 +00:00
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2022-10-06 18:32:54 +00:00
|
|
|
--replace " --cov=dbus_fast --cov-report=term-missing:skip-covered" ""
|
2022-09-22 12:36:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dbus_fast"
|
2022-09-30 11:47:45 +00:00
|
|
|
"dbus_fast.aio"
|
|
|
|
"dbus_fast.service"
|
|
|
|
"dbus_fast.message"
|
2022-09-22 12:36:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test require a running Dbus instance
|
|
|
|
"test_aio_big_message"
|
|
|
|
"test_aio_properties"
|
|
|
|
"test_aio_proxy_object"
|
|
|
|
"test_bus_disconnect_before_reply"
|
|
|
|
"test_export_alias"
|
|
|
|
"test_export_introspection"
|
|
|
|
"test_export_unexport"
|
|
|
|
"test_glib_big_message"
|
|
|
|
"test_high_level_service_fd_passing"
|
|
|
|
"test_interface_add_remove_signal"
|
|
|
|
"test_introspectable_interface"
|
|
|
|
"test_methods"
|
|
|
|
"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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-30 11:47:45 +00:00
|
|
|
changelog = "https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
description = "Faster version of dbus-next";
|
|
|
|
homepage = "https://github.com/bluetooth-devices/dbus-fast";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|