2014-10-17 15:09:20 +01:00
|
|
|
{ lib, pythonPackages, fetchurl }:
|
|
|
|
|
|
|
|
let version = "0.7.6";
|
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2015-11-18 16:56:26 +00:00
|
|
|
name = "cloud-init-${version}";
|
2014-10-17 15:09:20 +01:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/cloud-init/trunk/${version}/+download/cloud-init-${version}.tar.gz";
|
|
|
|
sha256 = "1mry5zdkfaq952kn1i06wiggc66cqgfp6qgnlpk0mr7nnwpd53wy";
|
|
|
|
};
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
patchPhase = ''
|
2015-01-08 09:26:49 +00:00
|
|
|
patchShebangs ./tools
|
|
|
|
|
2014-10-17 15:09:20 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace /usr $out \
|
|
|
|
--replace /etc $out/etc \
|
|
|
|
--replace /lib/systemd $out/lib/systemd \
|
2015-11-20 12:48:30 +00:00
|
|
|
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
|
2014-10-17 15:09:20 +01:00
|
|
|
'';
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
|
2014-10-17 15:09:20 +01:00
|
|
|
oauth pyserial configobj pyyaml argparse requests jsonpatch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://cloudinit.readthedocs.org;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Provides configuration and customization of cloud instance";
|
2014-10-17 15:09:20 +01:00
|
|
|
maintainers = [ lib.maintainers.madjar ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|