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