2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "7.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
|
|
owner = "libvirt";
|
|
|
|
repo = "libvirt-python";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-cfCyQ3KTv0lYTZMriUhm6psBAcJJIcmR/M9V/lrLmVE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://libvirt.org/python.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|