1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 azure-nspkg, 6 isPyPy, 7 setuptools, 8 python, 9 isPy3k, 10}: 11 12buildPythonPackage rec { 13 version = "1.1.28"; 14 format = "setuptools"; 15 pname = "azure-common"; 16 disabled = isPyPy; 17 18 src = fetchPypi { 19 inherit pname version; 20 extension = "zip"; 21 hash = "sha256-SsDNMhTja2obakQmhnIqXYzESWA6qDPz8PQL2oNnBKM="; 22 }; 23 24 propagatedBuildInputs = [ azure-nspkg ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup 25 26 postInstall = lib.optionalString (!isPy3k) '' 27 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py 28 ''; 29 30 doCheck = false; 31 32 meta = with lib; { 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; [ 37 olcai 38 maxwilson 39 ]; 40 }; 41}