nixpkgs/pkgs/development/python-modules/libvirt/default.nix

28 lines
682 B
Nix
Raw Normal View History

2018-02-26 22:50:46 +00:00
{ stdenv, buildPythonPackage, fetchgit, python, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
2018-02-26 22:50:46 +00:00
version = "4.1.0";
2018-02-26 22:50:46 +00:00
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 ];
};
}