3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/ansible/2.3.nix

41 lines
957 B
Nix
Raw Normal View History

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