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

28 lines
678 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }:
buildPythonPackage rec {
pname = "libvirt";
2020-05-29 03:39:12 +00:00
version = "6.3.0";
2018-02-26 22:50:46 +00:00
src = assert version == libvirt.version; fetchgit {
url = "git://libvirt.org/libvirt-python.git";
2018-02-26 22:50:46 +00:00
rev = "v${version}";
2020-05-29 03:39:12 +00:00
sha256 = "088cksq59jxkkzbvmwl8jw9v2k3zibwksl7j57yb51bxaa2sa1cx";
};
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 ];
};
}