buildPythonPackage: fix standalone applications using it

This commit is contained in:
Domen Kožar
2015-11-20 13:48:30 +01:00
parent 99a64da600
commit 704c8bab41
22 changed files with 88 additions and 216 deletions

View File

@@ -11,20 +11,19 @@ in pythonPackages.buildPythonPackage rec {
sha256 = "1mry5zdkfaq952kn1i06wiggc66cqgfp6qgnlpk0mr7nnwpd53wy";
};
preBuild = ''
patchPhase = ''
patchShebangs ./tools
substituteInPlace setup.py \
--replace /usr $out \
--replace /etc $out/etc \
--replace /lib/systemd $out/lib/systemd \
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
'';
pythonPath = with pythonPackages; [ cheetah jinja2 prettytable
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
oauth pyserial configobj pyyaml argparse requests jsonpatch ];
# TODO: --init-system systemd
meta = {
homepage = http://cloudinit.readthedocs.org;
description = "provides configuration and customization of cloud instance";