1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, azure-mgmt-common
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 version = "10.0.0";
11 pname = "azure-mgmt-compute";
12
13 src = fetchPypi {
14 inherit pname version;
15 extension = "zip";
16 sha256 = "1s3bx6knxw5dxycp43yimvgrh0i19drzd09asglcwz2x5mr3bpyg";
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 = [
25 azure-mgmt-common
26 ];
27
28 # has no tests
29 doCheck = false;
30
31 meta = with lib; {
32 description = "This is the Microsoft Azure Compute Management Client Library";
33 homepage = "https://github.com/Azure/azure-sdk-for-python";
34 license = licenses.mit;
35 maintainers = with maintainers; [ olcai mwilsoninsight ];
36 };
37}