mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
28 lines
639 B
Nix
28 lines
639 B
Nix
|
{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "libvirt";
|
||
|
version = "5.4.0";
|
||
|
|
||
|
src = fetchgit {
|
||
|
url = git://libvirt.org/libvirt-python.git;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "0ja35z90i3m7vsjfpzfm7awkmja3h0150376i5pzmf2q8vp61fi5";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|