pythonPackages.azure-mgmt-devtestlabs: fix python3 namespace

This commit is contained in:
Jonathan Ringer
2019-10-24 09:03:31 -07:00
committed by Jon
parent 13dbaabbf9
commit a6403f4b51

View File

@@ -1,11 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, isPy3k
, msrest
, msrestazure
, azure-common
, azure-mgmt-nspkg
, isPy3k
}:
buildPythonPackage rec {
@@ -26,6 +27,11 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
postInstall = lib.optionalString isPy3k ''
rm -f $out/${python.sitePackages}/azure/__init__.py
rm -f $out/${python.sitePackages}/azure/mgmt/__init__.py
'';
# has no tests
doCheck = false;
@@ -33,6 +39,6 @@ buildPythonPackage rec {
description = "This is the Microsoft Azure DevTestLabs Management Client Library";
homepage = https://github.com/Azure/sdk-for-python/tree/master/azure-mgmt-devtestlabs;
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ];
maintainers = with maintainers; [ jonringer mwilsoninsight ];
};
}