ansible_2_4: init at 2.4.0.0 (#30073)

This commit is contained in:
Peter Romfeld 2017-10-18 05:03:43 +08:00 committed by Jörg Thalheim
parent 05dc430222
commit 29f9ca40cb
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,40 @@
{ stdenv
, fetchurl
, pythonPackages
, windowsSupport ? false
}:
pythonPackages.buildPythonPackage rec {
pname = "ansible";
version = "2.4.0.0";
name = "${pname}-${version}";
src = fetchurl {
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
sha256 = "0xkwnx817rygb1922gncv9ivgvb7hjg8g53r39hfdm3jgzp6y9qs";
};
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;
meta = with stdenv.lib; {
homepage = http://www.ansible.com;
description = "A simple automation tool";
license = with licenses; [ gpl3 ];
maintainers = with maintainers; [
jgeerds
joamaki
];
platforms = with platforms; linux ++ darwin;
};
}

View File

@ -6859,8 +6859,9 @@ with pkgs;
ansible_2_1 = callPackage ../tools/admin/ansible/2.1.nix {};
ansible_2_2 = callPackage ../tools/admin/ansible/2.2.nix {};
ansible_2_3 = callPackage ../tools/admin/ansible/2.3.nix {};
ansible = ansible_2_3;
ansible2 = ansible_2_3;
ansible_2_4 = callPackage ../tools/admin/ansible/2.4.nix {};
ansible = ansible_2_4;
ansible2 = ansible_2_4;
antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };