diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 3edaca820b27..2b635f5160b0 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -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" ]; diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix index cf4e89c49075..d66d8958aac1 100644 --- a/pkgs/development/python-modules/ansible/default.nix +++ b/pkgs/development/python-modules/ansible/default.nix @@ -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.