2020-10-01 11:45:47 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitLab, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 09:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2020-09-26 17:19:31 +01:00
|
|
|
version = "6.6.0";
|
2017-12-09 09:10:05 +00:00
|
|
|
|
2020-10-01 11:45:47 +01:00
|
|
|
src = assert version == libvirt.version; fetchFromGitLab {
|
|
|
|
owner = "libvirt";
|
|
|
|
repo = "libvirt-python";
|
2018-02-26 22:50:46 +00:00
|
|
|
rev = "v${version}";
|
2020-09-26 17:19:31 +01:00
|
|
|
sha256 = "0jj6b2nlx7qldwbvixz74abn3p0sq4lkf6ak74vynrv5xvlycb9v";
|
2017-12-09 09:10:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-10-01 09:55:56 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|