summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-servicefabric
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-10-24 09:07:04 -0700
committerJon <jonringer@users.noreply.github.com>2019-11-23 19:47:04 -0800
commit1ec51ce906f138353f862192d8903d627118bbdd (patch)
treeb950726f02aea52d3b27d15eec8309d71c8837c0 /pkgs/development/python-modules/azure-mgmt-servicefabric
parent3aad4fa8d62149c87d33798866b7401d818eedad (diff)
downloadnixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar.gz
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar.bz2
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar.lz
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar.xz
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.tar.zst
nixpkgs-1ec51ce906f138353f862192d8903d627118bbdd.zip
pythonPackages.azure-mgmt-servicefabric: fix python3 namespace
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-servicefabric')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix b/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
index a80c97ea377..9c849829a12 100644
--- a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-servicefabric/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;