From 20d7a5f326acc7800119c7dff100f4a4446a0442 Mon Sep 17 00:00:00 2001 From: Wim de With Date: Mon, 2 Feb 2026 12:52:24 +0100 Subject: [PATCH] python3Packages.ansible-core: patch cli stub --- pkgs/development/python-modules/ansible/core.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 2851cef8ca6c..151d06b8cd62 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-WLfLbQYYJOdMHApNnFZYiET4es3z2SeeLP0jbrFqxrU="; }; - # 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;