diff options
Diffstat (limited to 'pkgs/development/python-modules/ansible/2.1.nix')
-rw-r--r-- | pkgs/development/python-modules/ansible/2.1.nix | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/ansible/2.1.nix b/pkgs/development/python-modules/ansible/2.1.nix index 8d7598a90c91..077bfa198aaf 100644 --- a/pkgs/development/python-modules/ansible/2.1.nix +++ b/pkgs/development/python-modules/ansible/2.1.nix @@ -10,10 +10,22 @@ , six , netaddr , dns -, pywinrm +, windowsSupport ? false +, pywinrm ? null }: -buildPythonPackage rec { +let + jinja = jinja2.override rec { + pname = "Jinja2"; + version = "2.8.1"; + name = "${pname}-${version}"; + src = fetchurl { + url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; + sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891"; + }; + }; + +in buildPythonPackage rec { pname = "ansible"; version = "2.1.4.0"; name = "${pname}-${version}"; @@ -32,9 +44,8 @@ buildPythonPackage rec { dontStrip = true; dontPatchELF = true; dontPatchShebangs = false; - windowsSupport = true; - propagatedBuildInputs = [ pycrypto paramiko jinja2 pyyaml httplib2 + propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2 boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm; meta = { @@ -47,4 +58,4 @@ buildPythonPackage rec { ]; platforms = with lib.platforms; linux ++ darwin; }; -} \ No newline at end of file +} |