pythonPackages.azure*: use pythonNamespaces

This commit is contained in:
Jonathan Ringer
2020-03-17 15:43:56 -07:00
committed by Jon
parent 9c8565f731
commit cf0f90b85e
25 changed files with 35 additions and 100 deletions

View File

@@ -16,15 +16,12 @@ buildPythonPackage rec {
sha256 = "1s3bx6knxw5dxycp43yimvgrh0i19drzd09asglcwz2x5mr3bpyg";
};
postInstall = if isPy3k then "" else ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
'';
propagatedBuildInputs = [
azure-mgmt-common
];
pythonNamespaces = [ "azure.mgmt" ];
# has no tests
doCheck = false;