1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pygobject3,
6 dbus,
7 hatchling,
8 pytestCheckHook,
9}:
10
11buildPythonPackage {
12 pname = "dasbus";
13 version = "unstable-11-10-2022";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rhinstaller";
18 repo = "dasbus";
19 rev = "64b6b4d9e37cd7e0cbf4a7bf75faa7cdbd01086d";
20 hash = "sha256-TmhhDrfpP+nUErAd7dUb+RtGBRtWwn3bYOoIqa0VRoc=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [ pygobject3 ];
26
27 nativeCheckInputs = [
28 dbus
29 pytestCheckHook
30 ];
31
32 disabledTestPaths = [
33 # https://github.com/dasbus-project/dasbus/issues/128
34 "tests/lib_dbus.py"
35 "tests/test_dbus.py"
36 "tests/test_unix.py"
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/rhinstaller/dasbus";
41 description = "DBus library in Python3";
42 license = licenses.lgpl21Only;
43 maintainers = with maintainers; [ moni ];
44 };
45}