12 buildPythonPackage rec {
14 format = "setuptools";
15 pname = "azure-common";
19 inherit pname version;
21 hash = "sha256-SsDNMhTja2obakQmhnIqXYzESWA6qDPz8PQL2oNnBKM=";
24 propagatedBuildInputs = [ azure-nspkg ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
26 postInstall = lib.optionalString (!isPy3k) ''
27 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py
33 description = "This is the Microsoft Azure common code";
34 homepage = "https://github.com/Azure/azure-sdk-for-python";
35 license = licenses.mit;
36 maintainers = with maintainers; [