about summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-monitor
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-03-17 15:43:56 -0700
committerJon <jonringer@users.noreply.github.com>2020-03-18 12:20:51 -0700
commitcf0f90b85e4dede1da85f97d48ccc0e9a53bf36f (patch)
treebfa2a56830648aa9e9d157089a4fe4234cbd51ff /pkgs/development/python-modules/azure-mgmt-monitor
parent9c8565f7314d3f5db52594ae001f9562a6ed0872 (diff)
pythonPackages.azure*: use pythonNamespaces
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-monitor')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-monitor/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
index 252760950e5be..ad0a97d4e82a6 100644
--- a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix
@@ -27,10 +27,7 @@ buildPythonPackage rec {
     azure-mgmt-nspkg
   ];
 
-  postInstall = lib.optionalString isPy3k ''
-    rm -rf $out/${python.sitePackages}/azure/__init__.py
-    rm -rf $out/${python.sitePackages}/azure/mgmt/__init__.py
-  '';
+  pythonNamespaces = [ "azure.mgmt" ];
 
   # has no tests
   doCheck = false;