Skip to content

Commit a6b1731

Browse files
authored
Merge pull request NixOS#192026 from fabaff/dbus-fast
python310Packages.dbus-fast: init at 1.4.0
2 parents 53466dc + bdd683f commit a6b1731

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,8 @@ in {
23002300

23012301
dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { };
23022302

2303+
dbus-fast = callPackage ../development/python-modules/dbus-fast { };
2304+
23032305
dbus-next = callPackage ../development/python-modules/dbus-next { };
23042306

23052307
dbus-python = callPackage ../development/python-modules/dbus {

0 commit comments

Comments
 (0)