summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-01 14:24:58 -0800
committerJon <jonringer@users.noreply.github.com>2019-12-01 19:47:46 -0800
commita7057501e22a31e62901d7345c7aea465525f6d3 (patch)
treea6e5d6496f4d3fa4c67a3179858fd6d4f00ad12a /pkgs
parentbb1013511e1e5edcf314df8321acf2f3c536df0d (diff)
downloadnixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar.gz
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar.bz2
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar.lz
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar.xz
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.tar.zst
nixpkgs-a7057501e22a31e62901d7345c7aea465525f6d3.zip
python3Packages.azure-loganalytics: fix python3 namespace
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/azure-loganalytics/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/azure-loganalytics/default.nix b/pkgs/development/python-modules/azure-loganalytics/default.nix
index ab512480f0c..4bfda9a9342 100644
--- a/pkgs/development/python-modules/azure-loganalytics/default.nix
+++ b/pkgs/development/python-modules/azure-loganalytics/default.nix
@@ -1,6 +1,8 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, python
+, isPy3k
 , msrest
 , azure-common
 }:
@@ -20,6 +22,10 @@ buildPythonPackage rec {
     azure-common
   ];
 
+  postInstall = lib.optionalString isPy3k ''
+    rm -rf $out/${python.sitePackages}/azure/__init__.py
+  '';
+
   # has no tests
   doCheck = false;
 
@@ -27,6 +33,6 @@ buildPythonPackage rec {
     description = "This is the Microsoft Azure Log Analytics Client Library";
     homepage = "https://github.com/Azure/azure-sdk-for-python";
     license = licenses.mit;
-    maintainers = with maintainers; [ mwilsoninsight ];
+    maintainers = with maintainers; [ mwilsoninsight jonringer ];
   };
 }