2021-03-14 23:57:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2019-10-23 08:15:49 +01:00
|
|
|
, azure-common
|
2020-05-19 00:22:04 +01:00
|
|
|
, azure-core
|
2019-10-23 08:15:49 +01:00
|
|
|
, msrest
|
|
|
|
, msrestazure
|
2020-05-19 00:22:04 +01:00
|
|
|
, requests
|
2019-10-23 08:15:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-23 18:01:05 +00:00
|
|
|
version = "0.6.2";
|
2019-10-23 08:15:49 +01:00
|
|
|
pname = "azure-multiapi-storage";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 18:01:05 +00:00
|
|
|
sha256 = "74061f99730fa82c54d9b8ab3c7d6e219da3f30912740ecf0456b20cb3555ebc";
|
2019-10-23 08:15:49 +01:00
|
|
|
};
|
|
|
|
|
2020-05-19 00:22:04 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-common
|
|
|
|
azure-core
|
|
|
|
msrest
|
|
|
|
msrestazure
|
|
|
|
requests
|
|
|
|
];
|
2019-10-23 08:15:49 +01:00
|
|
|
|
2020-03-17 22:43:56 +00:00
|
|
|
# fix namespace
|
|
|
|
pythonNamespaces = [ "azure.multiapi" ];
|
2019-10-23 08:15:49 +01:00
|
|
|
|
|
|
|
# no tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "azure.common" "azure.multiapi.storage" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Microsoft Azure Storage Client Library for Python with multi API version support.";
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|