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-01-12 00:19:19 +00:00
|
|
|
version = "1.10.0";
|
2019-12-21 04:47:39 +00:00
|
|
|
pname = "azure-core";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-01-12 00:19:19 +00:00
|
|
|
sha256 = "b9cddf3eb239e32b14cf44750b21d7bc8d78b82aa53d57628523598dcd006803";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|