2018-10-10 17:31:40 +01:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, azure-common
|
|
|
|
, futures
|
|
|
|
, dateutil
|
|
|
|
, requests
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-04-02 18:27:48 +01:00
|
|
|
version = "0.36.0";
|
2018-10-10 17:31:40 +01:00
|
|
|
pname = "azure-storage";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-02 18:27:48 +01:00
|
|
|
sha256 = "0pyasfxkin6j8j00qmky7d9cvpxgis4fi9bscgclj6yrpvf14qpv";
|
2018-10-10 17:31:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ azure-common dateutil requests ]
|
|
|
|
++ pkgs.lib.optionals (!isPy3k) [ futures ];
|
|
|
|
|
2020-04-02 18:27:48 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm azure_bdist_wheel.py
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "azure-namespace-package = azure-nspkg" ""
|
2018-10-10 17:31:40 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "Microsoft Azure SDK for Python";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2018-10-10 17:31:40 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ olcai ];
|
|
|
|
};
|
|
|
|
}
|