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