mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
[Backport release-25.05] ansible: add jmespath by default (#429802)
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user