pythonPackages.azure*: use pythonNamespaces
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user