Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-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 = "3.1.1"; 10 pname = "azure-mgmt-storage"; 11 12 src = fetchPypi { 13 inherit pname version; 14 extension = "zip"; 15 sha256 = "22a779cae5e09712b7d62ef9bc3d8907a5666893a8a113b6d9348e933170236f"; 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}