pythonPackages.azure-mgmt-monitor: fix python3 namespace

This commit is contained in:
Jonathan Ringer 2019-10-24 09:06:13 -07:00 committed by Jon
parent a8e8abd1de
commit 59521a9b33

View File

@ -1,11 +1,12 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python
, isPy3k
, msrest , msrest
, msrestazure , msrestazure
, azure-common , azure-common
, azure-mgmt-nspkg , azure-mgmt-nspkg
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -26,6 +27,11 @@ buildPythonPackage rec {
azure-mgmt-nspkg 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 # has no tests
doCheck = false; doCheck = false;