python3Packages.ansible-core: patch cli stub (#486253)

This commit is contained in:
Peder Bergebakken Sundt
2026-04-14 16:35:15 +00:00
committed by GitHub
@@ -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;