|
| 1 | +{ lib |
| 2 | +, buildPythonPackage |
| 3 | +, fetchFromGitHub |
| 4 | +, poetry-core |
| 5 | +, pytest-asyncio |
| 6 | +, pytestCheckHook |
| 7 | +, pythonOlder |
| 8 | +}: |
| 9 | + |
| 10 | +buildPythonPackage rec { |
| 11 | + pname = "dbus-fast"; |
| 12 | + version = "1.4.0"; |
| 13 | + format = "pyproject"; |
| 14 | + |
| 15 | + disabled = pythonOlder "3.7"; |
| 16 | + |
| 17 | + src = fetchFromGitHub { |
| 18 | + owner = "Bluetooth-Devices"; |
| 19 | + repo = pname; |
| 20 | + rev = "v${version}"; |
| 21 | + hash = "sha256-vbsigiUSGeetY+1MEeQ/cO3Oj8Ah0Yg9BUPo2Gc06KU="; |
| 22 | + }; |
| 23 | + |
| 24 | + nativeBuildInputs = [ |
| 25 | + poetry-core |
| 26 | + ]; |
| 27 | + |
| 28 | + checkInputs = [ |
| 29 | + pytest-asyncio |
| 30 | + pytestCheckHook |
| 31 | + ]; |
| 32 | + |
| 33 | + postPatch = '' |
| 34 | + substituteInPlace pyproject.toml \ |
| 35 | + --replace " --cov=dbus_fast --cov-report=term-missing:skip-covered" "" |
| 36 | + ''; |
| 37 | + |
| 38 | + pythonImportsCheck = [ |
| 39 | + "dbus_fast" |
| 40 | + ]; |
| 41 | + |
| 42 | + disabledTests = [ |
| 43 | + # Test require a running Dbus instance |
| 44 | + "test_aio_big_message" |
| 45 | + "test_aio_properties" |
| 46 | + "test_aio_proxy_object" |
| 47 | + "test_bus_disconnect_before_reply" |
| 48 | + "test_export_alias" |
| 49 | + "test_export_introspection" |
| 50 | + "test_export_unexport" |
| 51 | + "test_glib_big_message" |
| 52 | + "test_high_level_service_fd_passing" |
| 53 | + "test_interface_add_remove_signal" |
| 54 | + "test_introspectable_interface" |
| 55 | + "test_methods" |
| 56 | + "test_name_requests" |
| 57 | + "test_object_manager" |
| 58 | + "test_peer_interface" |
| 59 | + "test_property_changed_signal" |
| 60 | + "test_property_changed_signal" |
| 61 | + "test_property_methods" |
| 62 | + "test_sending_file_descriptor_low_level" |
| 63 | + "test_sending_file_descriptor_with_proxy" |
| 64 | + "test_sending_messages_between_buses" |
| 65 | + "test_sending_signals_between_buses" |
| 66 | + "test_signals" |
| 67 | + "test_standard_interface_properties" |
| 68 | + "test_standard_interfaces" |
| 69 | + "test_tcp_connection_with_forwarding" |
| 70 | + "test_unexpected_disconnect" |
| 71 | + ]; |
| 72 | + |
| 73 | + meta = with lib; { |
| 74 | + description = "Faster version of dbus-next"; |
| 75 | + homepage = "https://github.com/bluetooth-devices/dbus-fast"; |
| 76 | + license = licenses.mit; |
| 77 | + maintainers = with maintainers; [ fab ]; |
| 78 | + }; |
| 79 | +} |
0 commit comments