[Backport release-25.05] ansible: add jmespath by default (#429802)

This commit is contained in:
Aleksana
2025-08-01 17:58:57 +08:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
python,
pythonOlder,
installShellFiles,
docutils,
@@ -25,6 +26,8 @@
windowsSupport ? false,
pywinrm,
xmltodict,
# Additional packages to add to dependencies
extraPackages ? _: [ ],
}:
buildPythonPackage rec {
@@ -88,7 +91,8 @@ buildPythonPackage rec {
scp
xmltodict
]
++ lib.optionals windowsSupport [ pywinrm ];
++ lib.optionals windowsSupport [ pywinrm ]
++ extraPackages python.pkgs;
pythonRelaxDeps = [ "resolvelib" ];

View File

@@ -4,6 +4,7 @@
buildPythonPackage,
fetchPypi,
setuptools,
jmespath,
jsonschema,
jxmlease,
ncclient,
@@ -63,6 +64,10 @@ buildPythonPackage {
xmltodict
# ansible.windows
# Default ansible collections dependencies
# community.general
jmespath
# lots of collections with dedicated requirements.txt and pyproject.toml files,
# add the dependencies for the collections you need conditionally and install
# ansible using overrides to enable the collections you need.