From 1ec51ce906f138353f862192d8903d627118bbdd Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 24 Oct 2019 09:07:04 -0700 Subject: [PATCH] pythonPackages.azure-mgmt-servicefabric: fix python3 namespace --- .../python-modules/azure-mgmt-servicefabric/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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;