mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
Add ansible 2.3
This commit is contained in:
parent
8dda321c1f
commit
551dcb6783
50
pkgs/development/python-modules/ansible/2.3.nix
Normal file
50
pkgs/development/python-modules/ansible/2.3.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dns
|
||||
, windowsSupport ? false
|
||||
, pywinrm ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.3.1.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
||||
sha256 = "1xdr82fy8gahxh3586wm5k1bxksys7yl1f2n24shrk8gf99qyjyd";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontPatchShebangs = false;
|
||||
|
||||
propagatedBuildInputs = [ pycrypto paramiko jinja2 pyyaml httplib2
|
||||
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.ansible.com";
|
||||
description = "A simple automation tool";
|
||||
license = with lib.licenses; [ gpl3] ;
|
||||
maintainers = with lib.maintainers; [
|
||||
jgeerds
|
||||
joamaki
|
||||
];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
@ -986,10 +986,11 @@ in {
|
||||
};
|
||||
|
||||
ansible = self.ansible2;
|
||||
ansible2 = self.ansible_2_2;
|
||||
ansible2 = self.ansible_2_3;
|
||||
|
||||
ansible_2_1 = callPackage ../development/python-modules/ansible/2.1.nix {};
|
||||
ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
|
||||
ansible_2_3 = callPackage ../development/python-modules/ansible/2.3.nix {};
|
||||
|
||||
apipkg = buildPythonPackage rec {
|
||||
name = "apipkg-1.4";
|
||||
|
Loading…
Reference in New Issue
Block a user