Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 34 lines 946 B view raw
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, python 5, azure-common 6, azure-mgmt-nspkg 7, requests 8, msrestazure 9}: 10 11buildPythonPackage rec { 12 version = "0.20.0"; 13 pname = "azure-mgmt-common"; 14 15 src = fetchPypi { 16 inherit pname version; 17 extension = "zip"; 18 sha256 = "1rmzpz3733wv31rsnqpdy4bbafvk5dhbqx7q0xf62dlz7p0i4f66"; 19 }; 20 21 propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests msrestazure ]; 22 23 postInstall = '' 24 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py 25 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py 26 ''; 27 28 meta = with pkgs.lib; { 29 description = "Microsoft Azure SDK for Python"; 30 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ olcai ]; 33 }; 34}