From 94a2bab032a623f07ae4b05b8bb88ec3d6207dfa Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 23 Oct 2019 03:04:24 -0700 Subject: [PATCH] python3Packages.azure-mgmt-applicationinsight: fix python3 namespace --- .../azure-mgmt-applicationinsights/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix b/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix index 57c3aec3d45..0a485f05f91 100644 --- a/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, python , fetchPypi , msrest , msrestazure @@ -26,6 +27,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;