1{ 2 pkgs, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 azure-common, 7 azure-mgmt-nspkg, 8 requests, 9 msrestazure, 10 isPy3k, 11}: 12 13buildPythonPackage rec { 14 version = "0.20.0"; 15 format = "setuptools"; 16 pname = "azure-mgmt-common"; 17 18 src = fetchPypi { 19 inherit pname version; 20 extension = "zip"; 21 sha256 = "c63812c13d9f36615c07f874bc602b733bb516f1ed62ab73189b8f71c6bfbfe6"; 22 }; 23 24 propagatedBuildInputs = [ 25 azure-common 26 azure-mgmt-nspkg 27 requests 28 msrestazure 29 ]; 30 31 postInstall = pkgs.lib.optionalString (!isPy3k) '' 32 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/mgmt/__init__.py 33 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py 34 ''; 35 36 doCheck = false; 37 38 meta = with pkgs.lib; { 39 description = "This is the Microsoft Azure Resource Management common code"; 40 homepage = "https://github.com/Azure/azure-sdk-for-python"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ 43 olcai 44 maxwilson 45 ]; 46 }; 47}