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

@@ -7,22 +7,19 @@
}:
buildPythonPackage rec {
version = "7.2.0";
version = "8.0.0";
pname = "azure-mgmt-storage";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "01ck1ankgr9ikvfghhdcs777yrl2j2p8cw9q8nfdrjp22lpchabl";
sha256 = "0cxcdyy974ya1yi7s14sw54rwpc8qjngxr0jqb8vxki3528phrv3";
};
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;
@@ -30,6 +27,6 @@ buildPythonPackage rec {
description = "This is the Microsoft Azure Storage Management Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ olcai mwilsoninsight ];
maintainers = with maintainers; [ jonringer olcai mwilsoninsight ];
};
}