2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
2017-12-09 09:10:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libvirt";
|
2020-05-29 04:39:12 +01:00
|
|
|
version = "6.3.0";
|
2017-12-09 09:10:05 +00:00
|
|
|
|
2018-02-26 22:50:46 +00:00
|
|
|
src = assert version == libvirt.version; fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "git://libvirt.org/libvirt-python.git";
|
2018-02-26 22:50:46 +00:00
|
|
|
rev = "v${version}";
|
2020-05-29 04:39:12 +01:00
|
|
|
sha256 = "088cksq59jxkkzbvmwl8jw9v2k3zibwksl7j57yb51bxaa2sa1cx";
|
2017-12-09 09:10:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.libvirt.org/";
|
2017-12-09 09:10:05 +00:00
|
|
|
description = "libvirt Python bindings";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.fpletz ];
|
|
|
|
};
|
|
|
|
}
|