about summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-datamigration
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-10-24 09:03:01 -0700
committerJon <jonringer@users.noreply.github.com>2019-11-23 19:47:04 -0800
commit370dbf1ef5d30e496b20847c7c5a26f0674435d9 (patch)
treee48e5dd79ec2847d9e53ef514eea2a7667ed4be7 /pkgs/development/python-modules/azure-mgmt-datamigration
parent4ee07c642891e3e24fd485a2116bd21fe57d4c98 (diff)
pythonPackages.azure-mgmt-datamigration: fix python3 namespace
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-datamigration')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-datamigration/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix b/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix
index cd98e6f98b087..7fc7c56830119 100644
--- a/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix
@@ -1,11 +1,12 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
+, isPy3k
 , msrest
 , msrestazure
 , azure-common
 , azure-mgmt-nspkg
-, isPy3k
 }:
 
 buildPythonPackage rec {
@@ -26,6 +27,11 @@ buildPythonPackage rec {
     azure-mgmt-nspkg
   ];
 
+  postInstall = lib.optionalString isPy3k ''
+    rm $out/${python.sitePackages}/azure/__init__.py
+    rm $out/${python.sitePackages}/azure/mgmt/__init__.py
+  '';
+
   # has no tests
   doCheck = false;
 
@@ -33,6 +39,6 @@ buildPythonPackage rec {
     description = "This is the Microsoft Azure Data Migration Client Library";
     homepage = "https://github.com/Azure/azure-sdk-for-python";
     license = licenses.mit;
-    maintainers = with maintainers; [ mwilsoninsight ];
+    maintainers = with maintainers; [ jonringer mwilsoninsight ];
   };
 }