blob: f5f9b193c265325b15be7e192c392ff4906005a8 (
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
46
47
48
49
50
|
{
pkgs,
lib,
buildPythonPackage,
fetchFromGitHub,
pkg-config,
dbus,
setuptools,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "sdbus";
version = "0.14.2";
pyproject = true;
src = fetchFromGitHub {
owner = "python-sdbus";
repo = "python-sdbus";
tag = finalAttrs.version;
hash = "sha256-vRz7RTSI5QjI48YnaC20mbOKl6+yXk/TrFicQ0MDR9Q=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pkgs.systemd ];
pythonImportsCheck = [ "sdbus" ];
nativeCheckInputs = [
pytestCheckHook
dbus
];
disabledTestPaths = [
# try to access /var/lib/dbus/machine-id
"test/test_proxies.py::TestFreedesktopDbus::test_connection"
"test/test_sdbus_block.py::TestSync::test_sync"
];
meta = {
description = "Modern Python library for D-Bus";
homepage = "https://github.com/python-sdbus/python-sdbus";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [ camelpunch ];
platforms = lib.platforms.linux;
};
})
|