python.pkgs.libvirt: move to separate file
This commit is contained in:
parent
5b5b686f0a
commit
8b5fd51064
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
# if you update, also bump pythonPackages.libvirt or it will break
|
# if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> or it will break
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libvirt-${version}";
|
name = "libvirt-${version}";
|
||||||
version = "3.10.0";
|
version = "3.10.0";
|
||||||
|
26
pkgs/development/python-modules/libvirt/default.nix
Normal file
26
pkgs/development/python-modules/libvirt/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -21942,29 +21942,8 @@ EOF
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
libvirt = let
|
libvirt = callPackage ../development/python-modules/libvirt {
|
||||||
version = "3.10.0";
|
inherit (pkgs) libvirt;
|
||||||
in assert version == pkgs.libvirt.version; pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "libvirt-python-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "http://libvirt.org/sources/python/${name}.tar.gz";
|
|
||||||
sha256 = "1l0fgqjnx76pzkhq540x9sf5fgzlrn0dpay90j2m4iq8nkclcbpw";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
|
||||||
buildInputs = with self; [ python pkgs.libvirt lxml ];
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} setup.py build";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} setup.py install --prefix=$out";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://www.libvirt.org/;
|
|
||||||
description = "libvirt Python bindings";
|
|
||||||
license = licenses.lgpl2;
|
|
||||||
maintainers = [ maintainers.fpletz ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
rpdb = buildPythonPackage rec {
|
rpdb = buildPythonPackage rec {
|
||||||
|
Loading…
Reference in New Issue
Block a user