summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-relay
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-10-24 09:06:46 -0700
committerJon <jonringer@users.noreply.github.com>2019-11-23 19:47:04 -0800
commit3aad4fa8d62149c87d33798866b7401d818eedad (patch)
tree3eca68cd7004959c6c8f0c13ca0876f2f227e971 /pkgs/development/python-modules/azure-mgmt-relay
parenta17947cbea9f1d5a16e9d2c47cda56b5cfe18ad3 (diff)
downloadnixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar.gz
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar.bz2
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar.lz
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar.xz
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.tar.zst
nixpkgs-3aad4fa8d62149c87d33798866b7401d818eedad.zip
pythonPackages.azure-mgmt-relay: fix python3 namespace
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-relay')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-relay/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-relay/default.nix b/pkgs/development/python-modules/azure-mgmt-relay/default.nix
index 718cd985443..5046bf8740f 100644
--- a/pkgs/development/python-modules/azure-mgmt-relay/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-relay/default.nix
@@ -1,6 +1,8 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
+, isPy3k
 , msrestazure
 , azure-common
 , azure-mgmt-nspkg
@@ -22,6 +24,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;