1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/ansible/default.nix

58 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
2019-08-26 07:15:26 +01:00
, fetchFromGitHub
, buildPythonPackage
, pycrypto
, paramiko
, jinja2
, pyyaml
, httplib2
, six
, netaddr
, dnspython
, jmespath
, dopy
, ncclient
, windowsSupport ? false
, pywinrm
}:
buildPythonPackage rec {
pname = "ansible";
2020-06-19 17:27:39 +01:00
version = "2.9.10";
2019-08-26 07:15:26 +01:00
src = fetchFromGitHub {
owner = "ansible";
repo = "ansible";
rev = "v${version}";
2020-06-19 17:27:39 +01:00
sha256 = "1979522k57gafvq9vx3lbc3zah7jq3kiy98ji9x5bmxyddmgr9ch";
};
prePatch = ''
# ansible-connection is wrapped, so make sure it's not passed
# through the python interpreter.
sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py
'';
postInstall = ''
for m in docs/man/man1/*; do
install -vD $m -t $out/share/man/man1
done
'';
propagatedBuildInputs = [
pycrypto paramiko jinja2 pyyaml httplib2
six netaddr dnspython jmespath dopy ncclient
] ++ lib.optional windowsSupport pywinrm;
# dificult to test
doCheck = false;
meta = with lib; {
homepage = "http://www.ansible.com";
description = "Radically simple IT automation";
license = [ licenses.gpl3 ] ;
2020-05-18 00:40:20 +01:00
maintainers = with maintainers; [ joamaki costrouc hexa ];
platforms = platforms.linux ++ platforms.darwin;
};
}