2019-02-24 21:52:48 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pycrypto
|
|
|
|
, paramiko
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, httplib2
|
|
|
|
, boto
|
|
|
|
, six
|
|
|
|
, netaddr
|
|
|
|
, dnspython
|
|
|
|
, jmespath
|
|
|
|
, dopy
|
|
|
|
, windowsSupport ? false
|
|
|
|
, pywinrm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansible";
|
2019-07-12 17:20:19 +01:00
|
|
|
version = "2.8.2";
|
2019-02-24 21:52:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
|
2019-07-12 17:20:19 +01:00
|
|
|
sha256 = "1e5ba829ca0602c55b33da399b06f99b135a34014b661d1c36d8892a1e2d3730";
|
2019-02-24 21:52:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for m in docs/man/man1/*; do
|
|
|
|
install -vD $m -t $out/share/man/man1
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycrypto paramiko jinja2 pyyaml httplib2 boto
|
|
|
|
six netaddr dnspython jmespath dopy
|
|
|
|
] ++ lib.optional windowsSupport pywinrm;
|
|
|
|
|
|
|
|
# dificult to test
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = http://www.ansible.com;
|
|
|
|
description = "Radically simple IT automation";
|
|
|
|
license = [ licenses.gpl3 ] ;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ joamaki costrouc ];
|
2019-02-24 21:52:48 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|