nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 27 lines 674 B view raw
1{ stdenv, buildPythonPackage, fetchgit, pkgconfig, lxml, libvirt, nose }: 2 3buildPythonPackage rec { 4 pname = "libvirt"; 5 version = "6.1.0"; 6 7 src = assert version == libvirt.version; fetchgit { 8 url = git://libvirt.org/libvirt-python.git; 9 rev = "v${version}"; 10 sha256 = "0h3w1p5y4kg2hdbhxmg4lphcnmr7979iwi0m750f8vzbfccsrp7k"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ libvirt lxml ]; 15 16 checkInputs = [ nose ]; 17 checkPhase = '' 18 nosetests 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = http://www.libvirt.org/; 23 description = "libvirt Python bindings"; 24 license = licenses.lgpl2; 25 maintainers = [ maintainers.fpletz ]; 26 }; 27}