pythonPackages.azure-mgmt-consumption: fix python3 namespace

This commit is contained in:
Jonathan Ringer 2019-10-24 00:58:56 -07:00 committed by Jon
parent 3ff0fa20b6
commit 67ca54a677

View file

@ -1,6 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, isPy3k
, msrestazure
, azure-common
, azure-mgmt-nspkg
@ -22,6 +24,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;