Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 35 lines 989 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, azure-mgmt-common 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 version = "7.0.0"; 11 pname = "azure-mgmt-storage"; 12 13 src = fetchPypi { 14 inherit pname version; 15 extension = "zip"; 16 sha256 = "7f5e6b18dee267c99f08f6a716a93173bbae433c8665f5c59153fb1a963bc105"; 17 }; 18 19 postInstall = if isPy3k then "" else '' 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 # has no tests 27 doCheck = false; 28 29 meta = with lib; { 30 description = "This is the Microsoft Azure Storage Management Client Library"; 31 homepage = "https://github.com/Azure/azure-sdk-for-python"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ olcai mwilsoninsight ]; 34 }; 35}