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

28 lines
682 B
Nix
Raw Normal View History

2018-02-26 14:50:46 -08:00
{ stdenv, buildPythonPackage, fetchgit, python, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
2018-06-08 04:21:22 -07:00
version = "4.4.0";
2018-02-26 14:50:46 -08:00
src = assert version == libvirt.version; fetchgit {
url = git://libvirt.org/libvirt-python.git;
rev = "v${version}";
2018-06-08 04:21:22 -07:00
sha256 = "01kwwwacbq7kbsslb2ac3wwfs4r8nsv7jhn0df2mmff30izbhq34";
};
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 ];
};
}