summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dasbus/default.nix
blob: 09c5ec5132685dc62c418d7c0d27c4c319d84b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pygobject3,
  dbus,
  hatchling,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "dasbus";
  version = "unstable-11-10-2022";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rhinstaller";
    repo = "dasbus";
    rev = "64b6b4d9e37cd7e0cbf4a7bf75faa7cdbd01086d";
    hash = "sha256-TmhhDrfpP+nUErAd7dUb+RtGBRtWwn3bYOoIqa0VRoc=";
  };

  build-system = [ hatchling ];

  dependencies = [ pygobject3 ];

  nativeCheckInputs = [
    dbus
    pytestCheckHook
  ];

  disabledTestPaths = [
    # https://github.com/dasbus-project/dasbus/issues/128
    "tests/lib_dbus.py"
    "tests/test_dbus.py"
    "tests/test_unix.py"
  ];

  meta = {
    homepage = "https://github.com/rhinstaller/dasbus";
    description = "DBus library in Python3";
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ moni ];
  };
}