3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.azure-loganalytics: fix python3 namespace

This commit is contained in:
Jonathan Ringer 2019-12-01 14:24:58 -08:00 committed by Jon
parent bb1013511e
commit a7057501e2

View file

@ -1,6 +1,8 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python
, isPy3k
, msrest , msrest
, azure-common , azure-common
}: }:
@ -20,6 +22,10 @@ buildPythonPackage rec {
azure-common azure-common
]; ];
postInstall = lib.optionalString isPy3k ''
rm -rf $out/${python.sitePackages}/azure/__init__.py
'';
# has no tests # has no tests
doCheck = false; doCheck = false;
@ -27,6 +33,6 @@ buildPythonPackage rec {
description = "This is the Microsoft Azure Log Analytics Client Library"; description = "This is the Microsoft Azure Log Analytics Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ]; maintainers = with maintainers; [ mwilsoninsight jonringer ];
}; };
} }