21 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
28 __darwinAllowLocalNetworking = true;
31 inherit pname version;
32 hash = "sha256-Jic6JUEx+EJp6OpEZPNWDHMfKcDB9prJkBCEXyOcGo8=";
39 propagatedBuildInputs = [
45 passthru.optional-dependencies = {
60 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
62 # test server needs to be available
64 export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
71 # disable tests which touch network
78 "test_sync_transport_short_read_download_stream"
79 "test_aio_transport_short_read_download_stream"
80 # disable 8 tests failing on some darwin machines with errors:
81 # azure.core.polling.base_polling.BadStatus: Invalid return status 403 for 'GET' operation
82 # azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Forbidden'
83 ] ++ lib.optionals stdenv.isDarwin [
84 "location_polling_fail"
88 # requires testing modules which aren't published, and likely to create cyclic dependencies
89 "tests/test_connection_string_parsing.py"
91 "tests/async_tests/test_streaming_async.py"
92 "tests/test_streaming.py"
93 # testserver tests require being in a very specific working directory to make it work
94 "tests/testserver_tests/"
95 # requires missing pytest plugin
96 "tests/async_tests/test_rest_asyncio_transport.py"
97 # needs msrest, which cannot be included in nativeCheckInputs due to circular dependency new in msrest 0.7.1
98 # azure-core needs msrest which needs azure-core
99 "tests/test_polling.py"
100 "tests/async_tests/test_base_polling_async.py"
101 "tests/async_tests/test_polling_async.py"
105 description = "Microsoft Azure Core Library for Python";
106 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core";
107 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-core_${version}/sdk/core/azure-core/CHANGELOG.md";
108 license = licenses.mit;
109 maintainers = with maintainers; [ jonringer ];