2019-12-21 05:47:39 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
2020-03-25 00:08:43 +01:00
|
|
|
, mock
|
2019-12-21 05:47:39 +01:00
|
|
|
, msrest
|
|
|
|
, pytest
|
2020-08-09 02:51:07 +02:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
2019-12-21 05:47:39 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, trio
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-09 23:40:52 +02:00
|
|
|
version = "1.15.0";
|
2019-12-21 05:47:39 +01:00
|
|
|
pname = "azure-core";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-06-09 23:40:52 +02:00
|
|
|
sha256 = "197917b98fec661c35392e32abec4f690ac2117371a814e25e57c224ce23cf1f";
|
2019-12-21 05:47:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
2020-03-25 00:08:43 +01:00
|
|
|
mock
|
2019-12-21 05:47:39 +01:00
|
|
|
msrest
|
|
|
|
pytest
|
2020-08-09 02:51:07 +02:00
|
|
|
pytest-trio
|
|
|
|
pytest-asyncio
|
2019-12-21 05:47:39 +01:00
|
|
|
pytestCheckHook
|
|
|
|
trio
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/" ];
|
2020-08-09 02:51:07 +02:00
|
|
|
# disable tests which touch network
|
|
|
|
disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ];
|
2021-05-21 07:27:19 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
# requires testing modules which aren't published, and likely to create cyclic dependencies
|
|
|
|
"tests/test_connection_string_parsing.py"
|
|
|
|
# wants network
|
|
|
|
"tests/async_tests/test_streaming_async.py"
|
|
|
|
"tests/test_streaming.py"
|
|
|
|
];
|
2019-12-21 05:47:39 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|