11 buildPythonPackage rec {
13 pname = "azure-common";
17 inherit pname version;
19 sha256 = "b2866238aea5d7492cfb0282fc8b8d5f6d06fb433872345864d45753c10b6e4f";
22 propagatedBuildInputs = [
24 ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
26 postInstall = if isPy3k then "" else ''
27 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/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; [ olcai maxwilson ];