diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index a1418bfa0c2d..d24dee524f2c 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -44,9 +44,6 @@ buildPythonPackage (finalAttrs: { hash = "sha256-7KsxZH1d5FfdnsYfKSNGCmdYuBi8KzZxyZbG2WNAM9Y="; }; - # ansible_connection is already wrapped, so don't pass it through - # the python interpreter again, as it would break execution of - # connection plugins. postPatch = '' patchShebangs --build packaging/cli-doc/build.py @@ -98,6 +95,10 @@ buildPythonPackage (finalAttrs: { installManPage man/* ''; + postFixup = '' + patchPythonScript $out/${python.sitePackages}/ansible/cli/scripts/ansible_connection_cli_stub.py + ''; + # internal import errors, missing dependencies doCheck = false;