python3Packages.ansible-base: init at 2.10.9
This commit is contained in:
parent
98352e5439
commit
1e67245f20
|
@ -0,0 +1,75 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, installShellFiles
|
||||||
|
, cryptography
|
||||||
|
, jinja2
|
||||||
|
, junit-xml
|
||||||
|
, lxml
|
||||||
|
, ncclient
|
||||||
|
, packaging
|
||||||
|
, paramiko
|
||||||
|
, pexpect
|
||||||
|
, psutil
|
||||||
|
, pycrypto
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, scp
|
||||||
|
, windowsSupport ? false, pywinrm
|
||||||
|
, xmltodict
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "ansible-base";
|
||||||
|
version = "2.10.9";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0l91bwbavjnaqsnb4c6f17xl7r0cvglz3rxqfs63aagw10z5sqq4";
|
||||||
|
};
|
||||||
|
|
||||||
|
# ansible_connection is already wrapped, so don't pass it through
|
||||||
|
# the python interpreter again, as it would break execution of
|
||||||
|
# connection plugins.
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace lib/ansible/executor/task_executor.py \
|
||||||
|
--replace "[python," "["
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
# from requirements.txt
|
||||||
|
cryptography
|
||||||
|
jinja2
|
||||||
|
packaging
|
||||||
|
pyyaml
|
||||||
|
# optional dependencies
|
||||||
|
junit-xml
|
||||||
|
lxml
|
||||||
|
ncclient
|
||||||
|
paramiko
|
||||||
|
pexpect
|
||||||
|
psutil
|
||||||
|
pycrypto
|
||||||
|
requests
|
||||||
|
scp
|
||||||
|
xmltodict
|
||||||
|
] ++ lib.optional windowsSupport pywinrm;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage docs/man/man1/*.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
# internal import errors, missing dependencies
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Radically simple IT automation";
|
||||||
|
homepage = "https://www.ansible.com";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -411,6 +411,8 @@ in {
|
||||||
|
|
||||||
ansible = callPackage ../development/python-modules/ansible { };
|
ansible = callPackage ../development/python-modules/ansible { };
|
||||||
|
|
||||||
|
ansible-base = callPackage ../development/python-modules/ansible/base.nix { };
|
||||||
|
|
||||||
ansible-kernel = callPackage ../development/python-modules/ansible-kernel { };
|
ansible-kernel = callPackage ../development/python-modules/ansible-kernel { };
|
||||||
|
|
||||||
ansible-lint = callPackage ../development/python-modules/ansible-lint { };
|
ansible-lint = callPackage ../development/python-modules/ansible-lint { };
|
||||||
|
|
Loading…
Reference in New Issue