summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure/default.nix
blob: 0a2e733ea1ad46df5253a9697d75a56f44c78e45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ pkgs
, buildPythonPackage
, fetchPypi
, dateutil
, futures
, pyopenssl
, requests
, isPy3k
}:

buildPythonPackage rec {
  version = "4.0.0";
  pname = "azure";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "7d6afa332fccffe1a9390bcfac5122317eec657c6029f144d794603a81cd0e50";
  };

  propagatedBuildInputs = [ dateutil pyopenssl requests ]
                            ++ pkgs.lib.optionals (!isPy3k) [ futures ];

  # depends on futures for python 3 (not necissary)
  patchPhase = if (!isPy3k) then "" else ''
    sed -i -e "s/'futures'//" setup.py
  '';

  # tests are not packaged in pypi release
  doCheck = false;

  meta = with pkgs.lib; {
    description = "Microsoft Azure SDK for Python";
    homepage = "https://azure.microsoft.com/en-us/develop/python/";
    license = licenses.asl20;
    maintainers = with maintainers; [ olcai ];
    broken = true; # this should propagate over 70 azure packages, many of which are not added yet
  };
}