2019-12-21 04:47:39 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
2020-03-24 23:08:43 +00:00
|
|
|
, mock
|
2019-12-21 04:47:39 +00:00
|
|
|
, msrest
|
|
|
|
, pytest
|
2020-08-09 01:51:07 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
2019-12-21 04:47:39 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, trio
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-11 15:31:53 +00:00
|
|
|
version = "1.12.0";
|
2019-12-21 04:47:39 +00:00
|
|
|
pname = "azure-core";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-03-11 15:31:53 +00:00
|
|
|
sha256 = "adf2b1c6ef150a92295b4b405f982a9d2c55c4846728cb14760ca592acbb09ec";
|
2019-12-21 04:47:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
2020-03-24 23:08:43 +00:00
|
|
|
mock
|
2019-12-21 04:47:39 +00:00
|
|
|
msrest
|
|
|
|
pytest
|
2020-08-09 01:51:07 +01:00
|
|
|
pytest-trio
|
|
|
|
pytest-asyncio
|
2019-12-21 04:47:39 +00:00
|
|
|
pytestCheckHook
|
|
|
|
trio
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/" ];
|
2020-08-09 01:51:07 +01:00
|
|
|
# disable tests which touch network
|
|
|
|
disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ];
|
2019-12-21 04:47:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Microsoft Azure Core Library for Python";
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|