pythonPackages.ansible_2_1: init at 2.1.4.0
This commit is contained in:
parent
46b1ea260a
commit
c42cfa1e91
50
pkgs/development/python-modules/ansible/2.1.nix
Normal file
50
pkgs/development/python-modules/ansible/2.1.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dns
|
||||
, pywinrm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.1.4.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
||||
sha256 = "05nc68900qrzqp88970j2lmyvclgrjki66xavcpzyzamaqrh7wg9";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontPatchShebangs = false;
|
||||
windowsSupport = true;
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -926,6 +926,7 @@ in {
|
||||
ansible = self.ansible2;
|
||||
ansible2 = self.ansible_2_2;
|
||||
|
||||
ansible_2_1 = callPackage ../development/python-modules/ansible/2.1.nix {};
|
||||
ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
|
||||
|
||||
apipkg = buildPythonPackage rec {
|
||||
|
Loading…
Reference in New Issue
Block a user