1{ lib
2, buildPythonPackage
3, fetchPypi
4, azure-nspkg
5, isPyPy
6, setuptools
7, python
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 version = "1.1.27";
13 pname = "azure-common";
14 disabled = isPyPy;
15
16 src = fetchPypi {
17 inherit pname version;
18 extension = "zip";
19 sha256 = "9f3f5d991023acbd93050cf53c4e863c6973ded7e236c69e99c8ff5c7bad41ef";
20 };
21
22 propagatedBuildInputs = [
23 azure-nspkg
24 ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
25
26 postInstall = if isPy3k then "" else ''
27 echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
28 '';
29
30 doCheck = false;
31
32 meta = with lib; {
33 description = "This is the Microsoft Azure common code";
34 homepage = "https://github.com/Azure/azure-sdk-for-python";
35 license = licenses.mit;
36 maintainers = with maintainers; [ olcai maxwilson ];
37 };
38}