2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }:
|
2017-12-09 09:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2021-01-26 18:25:01 +00:00
|
|
|
version = "7.0.0";
|
2017-12-09 09:10:05 +00:00
|
|
|
|
2020-10-01 10:45:47 +00:00
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
|
|
owner = "libvirt";
|
|
|
|
repo = "libvirt-python";
|
2018-02-26 22:50:46 +00:00
|
|
|
rev = "v${version}";
|
2021-01-26 18:25:01 +00:00
|
|
|
sha256 = "0vdvpqiypxis8wny7q39qps050zi13l66pnpa47040q6bar0d4xw";
|
2017-12-09 09:10:05 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-12-09 09:10:05 +00:00
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-01 08:55:56 +00:00
|
|
|
homepage = "https://libvirt.org/python.html";
|
2017-12-09 09:10:05 +00:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|