summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-dns
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-10-24 09:03:57 -0700
committerJon <jonringer@users.noreply.github.com>2019-11-23 19:47:04 -0800
commit444451d44474b80a846f4aa05959f8d2f2716e6a (patch)
tree00f8095694373dfedfb1a0954ca28c16a7cdac78 /pkgs/development/python-modules/azure-mgmt-dns
parentaf3b325eff9932a07c72b86183dab8c45fac5e3a (diff)
downloadnixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar.gz
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar.bz2
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar.lz
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar.xz
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.tar.zst
nixpkgs-444451d44474b80a846f4aa05959f8d2f2716e6a.zip
pythonPackages.azure-mgmt-dns: fix python3 namespace
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-dns')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-dns/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-dns/default.nix b/pkgs/development/python-modules/azure-mgmt-dns/default.nix
index 94d51b765e9..89ae5912b39 100644
--- a/pkgs/development/python-modules/azure-mgmt-dns/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-dns/default.nix
@@ -1,12 +1,12 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
+, isPy3k
 , msrest
 , msrestazure
 , azure-common
 , azure-mgmt-nspkg
-, python
-, isPy3k
 }:
 
 buildPythonPackage rec {
@@ -26,6 +26,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 +38,6 @@ buildPythonPackage rec {
     description = "This is the Microsoft Azure DNS Management Client Library";
     homepage = "https://github.com/Azure/azure-sdk-for-python";
     license = licenses.mit;
-    maintainers = with maintainers; [ mwilsoninsight ];
+    maintainers = with maintainers; [ jonringer mwilsoninsight ];
   };
 }