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