nixpkgs/pkgs/development/python-modules/azure-mgmt-resource-deployments
ncaq 8284e302bb python3Packages.azure-mgmt-resource-{deployments,deploymentscripts,deploymentstacks,templatespecs}: fix deleting leaf module __init__.py
pythonNamespacesHook removes `__init__.py` at every level of the specified namespace paths.
Including the leaf module itself (e.g. "azure.mgmt.resource.deployments")
causes its `__init__.py` to be deleted,
even though it contains actual module code (re-exports like DeploymentsMgmtClient).
This results in runtime import errors in azure-cli.
Fix by specifying only the ancestor namespace packages ("azure.mgmt" and "azure.mgmt.resource") instead of the leaf module,
consistent with the parent azure-mgmt-resource package.

close #490035

Signed-off-by: ncaq <ncaq@ncaq.net>
2026-02-17 09:39:53 +01:00
..
default.nix python3Packages.azure-mgmt-resource-{deployments,deploymentscripts,deploymentstacks,templatespecs}: fix deleting leaf module __init__.py 2026-02-17 09:39:53 +01:00