2019-10-23 08:15:49 +01:00
|
|
|
{ lib, python, buildPythonPackage, fetchPypi, isPy27
|
2020-07-06 18:31:06 +01:00
|
|
|
, fetchpatch
|
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 {
|
2020-09-02 21:28:25 +01:00
|
|
|
version = "0.4.1";
|
2019-10-23 08:15:49 +01:00
|
|
|
pname = "azure-multiapi-storage";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-02 21:28:25 +01:00
|
|
|
sha256 = "0h7bzaqwyl3j9xqzjbnwxp59kmg6shxk76pml9kvvqbwsq9w6fx3";
|
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-07-06 18:31:06 +01:00
|
|
|
# Fix to actually install the package
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Azure/azure-multiapi-storage-python/pull/29/commits/1c8b08dfc9c5445498de3475dec8820eafbd0ca1.patch";
|
|
|
|
sha256 = "1f80sdbw4pagrlp9dhcimhp23sdmy0whiba07aa84agkpv4df9ny";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|