2017-01-27 08:59:10 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pycrypto
|
|
|
|
, paramiko
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, httplib2
|
|
|
|
, boto
|
|
|
|
, six
|
|
|
|
, netaddr
|
|
|
|
, dns
|
2017-02-11 12:26:17 +00:00
|
|
|
, windowsSupport ? false
|
|
|
|
, pywinrm ? null
|
2017-01-27 08:59:10 +00:00
|
|
|
}:
|
|
|
|
|
2017-02-03 08:54:07 +00:00
|
|
|
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 {
|
2017-01-27 08:59:10 +00:00
|
|
|
pname = "ansible";
|
|
|
|
version = "2.1.4.0";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
|
|
|
sha256 = "05nc68900qrzqp88970j2lmyvclgrjki66xavcpzyzamaqrh7wg9";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = false;
|
|
|
|
|
2017-02-03 08:54:07 +00:00
|
|
|
propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2
|
2017-01-27 08:59:10 +00:00
|
|
|
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.ansible.com";
|
|
|
|
description = "A simple automation tool";
|
|
|
|
license = with lib.licenses; [ gpl3] ;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
jgeerds
|
|
|
|
joamaki
|
|
|
|
];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
|
|
};
|
2017-02-03 08:54:07 +00:00
|
|
|
}
|