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;
|
2016-02-25 14:02:38 +00:00
|
|
|
[ setuptools eventlet greenlet gflags netaddr sqlalchemy7 carrot routes
|
2015-10-15 14:01:05 +01:00
|
|
|
PasteDeploy m2crypto ipy twisted sqlalchemy_migrate
|
2015-12-03 21:35:25 +00:00
|
|
|
distutils_extra simplejson readline glanceclient cheetah lockfile httplib2
|
2012-05-10 20:29:54 +01:00
|
|
|
# !!! should libvirt be a build-time dependency? Note that
|
2015-10-15 14:01:05 +01:00
|
|
|
# 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 =
|
2015-10-15 14:01:05 +01:00
|
|
|
[ pythonPackages.python
|
2012-05-10 20:29:54 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|