forked from mirrors/nixpkgs
28 lines
682 B
Nix
28 lines
682 B
Nix
{ stdenv, buildPythonPackage, fetchgit, python, pkgconfig, lxml, libvirt, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libvirt";
|
|
version = "4.1.0";
|
|
|
|
src = assert version == libvirt.version; fetchgit {
|
|
url = git://libvirt.org/libvirt-python.git;
|
|
rev = "v${version}";
|
|
sha256 = "0z87y6qr0ypdxfanphxl7yanisd7a0b0bwhg97kii68mig5dlw9r";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|