2019-02-24 22:52:48 +01:00
|
|
|
{ lib
|
2019-08-26 08:15:26 +02:00
|
|
|
, fetchFromGitHub
|
2019-02-24 22:52:48 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, pycrypto
|
|
|
|
, paramiko
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, httplib2
|
|
|
|
, boto
|
|
|
|
, six
|
|
|
|
, netaddr
|
|
|
|
, dnspython
|
|
|
|
, jmespath
|
|
|
|
, dopy
|
|
|
|
, windowsSupport ? false
|
|
|
|
, pywinrm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansible";
|
2019-08-26 08:15:26 +02:00
|
|
|
version = "2.8.4";
|
2019-02-24 22:52:48 +01:00
|
|
|
|
2019-08-26 08:15:26 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ansible";
|
|
|
|
repo = "ansible";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fp7zz8awfv70nn8i6x0ggx4472377hm7787x16qv2kz4nb069ki";
|
2019-02-24 22:52:48 +01: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 = [
|
2019-10-17 09:33:37 +02:00
|
|
|
pycrypto paramiko jinja2 pyyaml httplib2
|
2019-02-24 22:52:48 +01:00
|
|
|
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 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ joamaki costrouc ];
|
2019-02-24 22:52:48 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|