1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

fix ansible constants.py patching, do not propagate pythonpaths

This commit is contained in:
Allen Nelson 2015-10-20 13:20:05 -05:00
parent c0a963e3cc
commit 8b93c4103d

View file

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