From a7057501e22a31e62901d7345c7aea465525f6d3 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 1 Dec 2019 14:24:58 -0800 Subject: [PATCH] python3Packages.azure-loganalytics: fix python3 namespace --- .../python-modules/azure-loganalytics/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ]; }; }