1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, azure-mgmt-common
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 version = "4.0.0";
11 pname = "azure-mgmt-storage";
12
13 src = fetchPypi {
14 inherit pname version;
15 extension = "zip";
16 sha256 = "1kxd30s2axn3g4qx3v7q3d5l744a29xlfk3q06ra0rqm1p6prvgv";
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://docs.microsoft.com/en-us/python/api/overview/azure/storage?view=azure-python;
32 license = licenses.mit;
33 maintainers = with maintainers; [ olcai mwilsoninsight ];
34 };
35}