1{ pkgs
2, buildPythonPackage
3, fetchPypi
4, python
5, azure-mgmt-common
6, isPy3k
7}:
8
9
10buildPythonPackage rec {
11 version = "10.2.0";
12 pname = "azure-mgmt-resource";
13
14 src = fetchPypi {
15 inherit pname version;
16 extension = "zip";
17 sha256 = "ddfe4c0c55f0e3fd1f66dd82c1d4a3d872ce124639b9a77fcd172daf464438a5";
18 };
19
20 postInstall = if isPy3k then "" else ''
21 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
22 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
23 '';
24
25 propagatedBuildInputs = [ azure-mgmt-common ];
26
27 # has no tests
28 doCheck = false;
29
30 meta = with pkgs.lib; {
31 description = "Microsoft Azure SDK for Python";
32 homepage = "https://github.com/Azure/azure-sdk-for-python";
33 license = licenses.mit;
34 maintainers = with maintainers; [ olcai mwilsoninsight ];
35 };
36}