about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/azure-storage/default.nix
blob: e2037bb7d21fc4488a15257f4e9d22cdb22f6a51 (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
{ pkgs
, buildPythonPackage
, fetchPypi
, python
, azure-common
, futures
, dateutil
, requests
, isPy3k
}:

buildPythonPackage rec {
  version = "0.36.0";
  pname = "azure-storage";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0pyasfxkin6j8j00qmky7d9cvpxgis4fi9bscgclj6yrpvf14qpv";
  };

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

  postPatch = ''
    rm azure_bdist_wheel.py
    substituteInPlace setup.cfg \
      --replace "azure-namespace-package = azure-nspkg" ""
  '';

  meta = with pkgs.lib; {
    description = "Microsoft Azure SDK for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    license = licenses.asl20;
    maintainers = with maintainers; [ olcai ];
  };
}