1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 setuptools,
6 pkg-config,
7 lxml,
8 libvirt,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "libvirt";
14 version = "10.5.0";
15 pyproject = true;
16
17 src = fetchFromGitLab {
18 owner = "libvirt";
19 repo = "libvirt-python";
20 rev = "v${version}";
21 hash = "sha256-dPjT9PRoUzNrY79yejAW/sbkMr0fpLif7IKZIW/K3KI=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [
28 libvirt
29 lxml
30 ];
31
32 pythonImportsCheck = [ "libvirt" ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 meta = with lib; {
37 homepage = "https://libvirt.org/python.html";
38 description = "libvirt Python bindings";
39 license = licenses.lgpl2;
40 maintainers = [ maintainers.fpletz ];
41 };
42}