mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 22:24:40 +00:00
python311Packages.azure-core: 1.26.3 -> 1.28.0
Changelog: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md
This commit is contained in:
parent
0e1fc501c6
commit
8b6dd73c04
@ -14,19 +14,22 @@
|
||||
, requests
|
||||
, six
|
||||
, trio
|
||||
, typing-extensions }:
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.26.3";
|
||||
version = "1.28.0";
|
||||
pname = "azure-core";
|
||||
disabled = pythonOlder "3.6";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
hash = "sha256-rL0NqpZ1zohiPaNcgNgZza+pFzHe5rJpXGTXyp2oLbQ=";
|
||||
hash = "sha256-6e78Zvwf3lbatvBNTl0SxgdU1an6Sb3P2FNPyW7ZNr0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -35,9 +38,14 @@ buildPythonPackage rec {
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
aio = [
|
||||
aiohttp
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiodns
|
||||
aiohttp
|
||||
flask
|
||||
mock
|
||||
pytest
|
||||
@ -45,14 +53,17 @@ buildPythonPackage rec {
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
trio
|
||||
];
|
||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||
|
||||
# test server needs to be available
|
||||
preCheck = ''
|
||||
export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "tests/" ];
|
||||
pytestFlagsArray = [
|
||||
"tests/"
|
||||
];
|
||||
|
||||
# disable tests which touch network
|
||||
disabledTests = [
|
||||
"aiohttp"
|
||||
@ -68,6 +79,7 @@ buildPythonPackage rec {
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"location_polling_fail"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires testing modules which aren't published, and likely to create cyclic dependencies
|
||||
"tests/test_connection_string_parsing.py"
|
||||
@ -88,6 +100,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Microsoft Azure Core Library for Python";
|
||||
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
||||
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user