1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, async-timeout
6, dbus
7, pytest
8, pytest-trio
9, pytest-asyncio
10, testpath
11, trio
12}:
13
14buildPythonPackage rec {
15 pname = "jeepney";
16 version = "0.7.1";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f";
23 };
24
25 checkInputs = [
26 async-timeout
27 dbus
28 pytest
29 pytest-trio
30 pytest-asyncio
31 testpath
32 trio
33 ];
34
35 checkPhase = ''
36 runHook preCheck
37
38 dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- pytest
39
40 runHook postCheck
41 '';
42
43 pythonImportsCheck = [
44 "jeepney"
45 "jeepney.auth"
46 "jeepney.io"
47 "jeepney.io.asyncio"
48 "jeepney.io.blocking"
49 "jeepney.io.threading"
50 "jeepney.io.trio"
51 ];
52
53 meta = with lib; {
54 homepage = "https://gitlab.com/takluyver/jeepney";
55 description = "Pure Python DBus interface";
56 license = licenses.mit;
57 maintainers = with maintainers; [ dotlambda ];
58 };
59}