2017-08-28 12:29:29 +02:00
|
|
|
{ stdenv
|
2017-06-27 21:22:31 +02:00
|
|
|
, fetchurl
|
2017-08-28 12:29:29 +02:00
|
|
|
, pythonPackages
|
2017-06-27 21:22:31 +02:00
|
|
|
, windowsSupport ? false
|
|
|
|
}:
|
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
pythonPackages.buildPythonPackage rec {
|
2017-06-27 21:22:31 +02:00
|
|
|
pname = "ansible";
|
2017-10-25 21:23:52 +02:00
|
|
|
version = "2.3.2.0";
|
2017-06-27 21:22:31 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
2017-10-25 21:23:52 +02:00
|
|
|
sha256 = "1sv8666vw6fi93jlgkwd4lxkfn75yqczfvk129zlh8ll4wjv8qq5";
|
2017-06-27 21:22:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontPatchShebangs = false;
|
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2017-12-10 15:27:06 +01:00
|
|
|
pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dnspython
|
2017-08-28 12:29:29 +02:00
|
|
|
] ++ stdenv.lib.optional windowsSupport pywinrm;
|
2017-06-27 21:22:31 +02:00
|
|
|
|
2017-08-28 12:29:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.ansible.com;
|
2017-06-27 21:22:31 +02:00
|
|
|
description = "A simple automation tool";
|
2017-10-25 21:23:52 +02:00
|
|
|
license = with licenses; [ gpl3 ] ;
|
2017-08-28 12:29:29 +02:00
|
|
|
maintainers = with maintainers; [
|
2017-06-27 21:22:31 +02:00
|
|
|
jgeerds
|
|
|
|
joamaki
|
|
|
|
];
|
2017-08-28 12:29:29 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-06-27 21:22:31 +02:00
|
|
|
};
|
|
|
|
}
|