1{ pkgs
2, buildPythonPackage
3, fetchPypi
4, dateutil
5, futures
6, pyopenssl
7, requests
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 version = "4.0.0";
13 pname = "azure";
14
15 src = fetchPypi {
16 inherit pname version;
17 extension = "zip";
18 sha256 = "7d6afa332fccffe1a9390bcfac5122317eec657c6029f144d794603a81cd0e50";
19 };
20
21 propagatedBuildInputs = [ dateutil pyopenssl requests ]
22 ++ pkgs.lib.optionals (!isPy3k) [ futures ];
23
24 # depends on futures for python 3 (not necissary)
25 patchPhase = if (!isPy3k) then "" else ''
26 sed -i -e "s/'futures'//" setup.py
27 '';
28
29 # tests are not packaged in pypi release
30 doCheck = false;
31
32 meta = with pkgs.lib; {
33 description = "Microsoft Azure SDK for Python";
34 homepage = "https://azure.microsoft.com/en-us/develop/python/";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ olcai ];
37 broken = true; # this should propagate over 70 azure packages, many of which are not added yet
38 };
39}