summary refs log tree commit diff
path: root/pkgs/development/python-modules/libvirt/default.nix
blob: 5dc33d2d93e1ffa7f02a8f8de192e2cc920d4307 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, buildPythonPackage, fetchurl, python, pkgconfig, lxml, libvirt, nose }:

buildPythonPackage rec {
  pname = "libvirt";
  version = "3.10.0";

  src = assert version == libvirt.version; fetchurl {
    url = "http://libvirt.org/sources/python/${pname}-python-${version}.tar.gz";
    sha256 = "1l0fgqjnx76pzkhq540x9sf5fgzlrn0dpay90j2m4iq8nkclcbpw";
  };

  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 ];
  };
}