1{ pkgs
2, buildPythonPackage
3, fetchPypi
4, azure-common
5, cryptography
6, futures ? null
7, python-dateutil
8, requests
9, isPy3k
10}:
11
12buildPythonPackage rec {
13 version = "0.36.0";
14 pname = "azure-storage";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0pyasfxkin6j8j00qmky7d9cvpxgis4fi9bscgclj6yrpvf14qpv";
19 };
20
21 propagatedBuildInputs = [ azure-common cryptography python-dateutil requests ]
22 ++ pkgs.lib.optionals (!isPy3k) [ futures ];
23
24 postPatch = ''
25 rm azure_bdist_wheel.py
26 substituteInPlace setup.cfg \
27 --replace "azure-namespace-package = azure-nspkg" ""
28 '';
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.asl20;
34 maintainers = with maintainers; [ olcai ];
35 };
36}