summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-billing/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-billing/default.nix')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-billing/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-billing/default.nix b/pkgs/development/python-modules/azure-mgmt-billing/default.nix
index 8c658145d7e..6e9656950d5 100644
--- a/pkgs/development/python-modules/azure-mgmt-billing/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-billing/default.nix
@@ -30,10 +30,7 @@ buildPythonPackage rec {
       --replace "azure-namespace-package = azure-mgmt-nspkg" ""
   '';
 
-  postInstall = lib.optionalString isPy3k ''
-    rm $out/${python.sitePackages}/azure/__init__.py
-    rm $out/${python.sitePackages}/azure/mgmt/__init__.py
-  '';
+  pythonNamespaces = [ "azure.mgmt" ];
 
   # has no tests
   doCheck = false;