2014-08-27 20:21:35 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl }:
|
2012-05-10 20:29:54 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-01-10 17:54:57 +00:00
|
|
|
let version = "0.600.4"; in
|
2012-05-10 20:29:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "virtinst-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://virt-manager.org/download/sources/virtinst/virtinst-${version}.tar.gz";
|
2014-01-10 17:54:57 +00:00
|
|
|
sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf";
|
2012-05-10 20:29:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = with pythonPackages;
|
|
|
|
[ setuptools eventlet greenlet gflags netaddr sqlalchemy carrot routes
|
2014-08-27 11:09:42 +01:00
|
|
|
paste_deploy m2crypto ipy twisted sqlalchemy_migrate
|
2012-05-10 20:29:54 +01:00
|
|
|
distutils_extra simplejson readline glance cheetah lockfile httplib2
|
|
|
|
# !!! should libvirt be a build-time dependency? Note that
|
|
|
|
# libxml2Python is a dependency of libvirt.py.
|
2013-02-05 17:15:58 +00:00
|
|
|
libvirt libxml2Python urlgrabber
|
2012-05-10 20:29:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ pythonPackages.python
|
|
|
|
pythonPackages.wrapPython
|
|
|
|
pythonPackages.mox
|
|
|
|
intltool
|
|
|
|
] ++ pythonPath;
|
|
|
|
|
|
|
|
buildPhase = "python setup.py build";
|
|
|
|
|
|
|
|
installPhase =
|
2013-02-05 17:15:58 +00:00
|
|
|
''
|
2012-05-10 20:29:54 +01:00
|
|
|
python setup.py install --prefix="$out";
|
2013-02-05 17:15:58 +00:00
|
|
|
wrapPythonPrograms
|
2012-05-10 20:29:54 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://virt-manager.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-05-10 20:29:54 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [qknight];
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Command line tool which provides an easy way to provision operating systems into virtual machines";
|
2012-05-10 20:29:54 +01:00
|
|
|
};
|
|
|
|
}
|