pythonPackages.azure-mgmt-dns: fix python3 namespace

This commit is contained in:
Jonathan Ringer 2019-10-24 09:03:57 -07:00 committed by Jon
parent af3b325eff
commit 444451d444

View file

@ -1,12 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, isPy3k
, msrest
, msrestazure
, azure-common
, azure-mgmt-nspkg
, python
, isPy3k
}:
buildPythonPackage rec {
@ -26,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;
@ -33,6 +38,6 @@ buildPythonPackage rec {
description = "This is the Microsoft Azure DNS Management Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ];
maintainers = with maintainers; [ jonringer mwilsoninsight ];
};
}