Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible_2_4: init at 2.4.0.0 (#30073)
- Loading branch information
1 parent
05dc430
commit 29f9ca4
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters