Merge pull request #10501 from adnelson/fix_ansible

ansible: fix constants.py patching, do not propagate pythonpaths
This commit is contained in:
Domen Kožar 2015-11-22 10:13:00 +01:00
commit 47cb9d76d6
1 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,7 @@ pythonPackages.buildPythonPackage rec {
};
prePatch = ''
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
sed -i "s,/usr/,$out," lib/ansible/constants.py
'';
doCheck = false;
@ -19,14 +19,10 @@ pythonPackages.buildPythonPackage rec {
dontPatchELF = true;
dontPatchShebangs = true;
propagatedBuildInputs = with pythonPackages; [
pythonPath = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto six
] ++ stdenv.lib.optional windowsSupport pywinrm;
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
meta = with stdenv.lib; {
homepage = "http://www.ansible.com";
description = "A simple automation tool";