6b5b7d96fb
This reverts commit 8835240895
.
4.6.0 is quite broken. Let's wait for the next release.
28 lines
674 B
Nix
28 lines
674 B
Nix
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "4.5.0";
|
|
|
|
src = assert version == libvirt.version; fetchgit {
|
|
url = git://libvirt.org/libvirt-python.git;
|
|
rev = "v${version}";
|
|
sha256 = "0w2rzkxv7jsq4670m0j5c6p4hpyi0r0ja6wd3wdvixcwc6hhx407";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libvirt lxml ];
|
|
|
|
checkInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.libvirt.org/;
|
|
description = "libvirt Python bindings";
|
|
license = licenses.lgpl2;
|
|
maintainers = [ maintainers.fpletz ];
|
|
};
|
|
}
|