Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 32 lines 888 B view raw
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, python 5, azure-mgmt-common 6}: 7 8 9buildPythonPackage rec { 10 version = "2.1.0"; 11 pname = "azure-mgmt-resource"; 12 13 src = fetchPypi { 14 inherit pname version; 15 extension = "zip"; 16 sha256 = "aef8573066026db04ed3e7c5e727904e42f6462b6421c2e8a3646e4c4f8128be"; 17 }; 18 19 postInstall = '' 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 = [ azure-mgmt-common ]; 25 26 meta = with pkgs.lib; { 27 description = "Microsoft Azure SDK for Python"; 28 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 29 license = licenses.asl20; 30 maintainers = with maintainers; [ olcai ]; 31 }; 32}