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

28 lines
635 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchgit, pkg-config, lxml, libvirt, nose }:
2020-02-27 05:53:31 +00:00
buildPythonPackage rec {
pname = "libvirt";
2020-03-06 09:16:33 +00:00
version = "5.9.0";
2020-02-27 05:53:31 +00:00
src = fetchgit {
url = "git://libvirt.org/libvirt-python.git";
2020-02-27 05:53:31 +00:00
rev = "v${version}";
2020-03-06 09:16:33 +00:00
sha256 = "0qvr0s7yasswy1s5cvkm91iifk33pb8s7nbb38zznc46706b358r";
2020-02-27 05:53:31 +00:00
};
nativeBuildInputs = [ pkg-config ];
2020-02-27 05:53:31 +00:00
buildInputs = [ libvirt lxml ];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with lib; {
homepage = "http://www.libvirt.org/";
2020-02-27 05:53:31 +00:00
description = "libvirt Python bindings";
license = licenses.lgpl2;
maintainers = [ maintainers.fpletz ];
};
}