1{ stdenv, fetchurl, python2Packages, intltool, libxml2Python, curl }:
2
3with stdenv.lib;
4
5let version = "0.600.4"; in
6
7stdenv.mkDerivation rec {
8 name = "virtinst-${version}";
9
10 src = fetchurl {
11 url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz";
12 sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf";
13 };
14
15 pythonPath = with python2Packages;
16 [ setuptools eventlet greenlet gflags netaddr carrot routes
17 PasteDeploy m2crypto ipy twisted
18 distutils_extra simplejson cheetah lockfile httplib2
19 # !!! should libvirt be a build-time dependency? Note that
20 # libxml2Python is a dependency of libvirt.py.
21 libvirt libxml2Python urlgrabber
22 ];
23
24 buildInputs =
25 [ python2Packages.python
26 python2Packages.wrapPython
27 python2Packages.mox
28 intltool
29 ] ++ pythonPath;
30
31 buildPhase = "python setup.py build";
32
33 installPhase =
34 ''
35 python setup.py install --prefix="$out";
36 wrapPythonPrograms
37 '';
38
39 meta = {
40 homepage = http://virt-manager.org;
41 license = stdenv.lib.licenses.gpl2Plus;
42 maintainers = with stdenv.lib.maintainers; [qknight];
43 description = "Command line tool which provides an easy way to provision operating systems into virtual machines";
44 platforms = with stdenv.lib.platforms; linux;
45 };
46}