Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, azure-mgmt-common 5, python 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 version = "11.0.0"; 11 pname = "azure-mgmt-network"; 12 13 src = fetchPypi { 14 inherit pname version; 15 extension = "zip"; 16 sha256 = "7fdfc631c660cb173eee88abbb7b8be7742f91b522be6017867f217409cd69bc"; 17 }; 18 19 postInstall = if isPy3k then "" else '' 20 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py 21 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py 22 ''; 23 24 propagatedBuildInputs = [ 25 azure-mgmt-common 26 ]; 27 28 # has no tests 29 doCheck = false; 30 31 meta = with lib; { 32 description = "Microsoft Azure SDK for Python"; 33 homepage = "https://github.com/Azure/azure-sdk-for-python"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ olcai mwilsoninsight ]; 36 }; 37}