mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
python.pkgs.libvirt: move to separate file
This commit is contained in:
parent
5b5b686f0a
commit
8b5fd51064
@ -9,7 +9,7 @@
|
||||
|
||||
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 {
|
||||
name = "libvirt-${version}";
|
||||
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
|
||||
version = "3.10.0";
|
||||
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 ];
|
||||
};
|
||||
libvirt = callPackage ../development/python-modules/libvirt {
|
||||
inherit (pkgs) libvirt;
|
||||
};
|
||||
|
||||
rpdb = buildPythonPackage rec {
|
||||
|
Loading…
Reference in New Issue
Block a user