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