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