Skip to content

Commit effe683

Browse files
authored
python312Packages.aiohttp-retry: 2.8.3 -> 2.9.0 (#351565)
2 parents b9b682e + 73d9296 commit effe683

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

pkgs/development/python-modules/aiohttp-retry/default.nix

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,26 @@
66
pytestCheckHook,
77
pytest-aiohttp,
88
pythonOlder,
9+
setuptools,
910
}:
1011

1112
buildPythonPackage rec {
1213
pname = "aiohttp-retry";
13-
version = "2.8.3";
14-
format = "setuptools";
14+
version = "2.9.0";
15+
pyproject = true;
1516

1617
disabled = pythonOlder "3.7";
1718

1819
src = fetchFromGitHub {
1920
owner = "inyutin";
2021
repo = "aiohttp_retry";
21-
rev = "v${version}";
22-
hash = "sha256-Zr68gx8ZR9jKrogmqaFLvpBAIHE9ptHm0zZ/b49cCLw=";
22+
rev = "refs/tags/v${version}";
23+
hash = "sha256-9riIGQDxC+Ee16itSWJWobPkmuy7Mkn2eyTkevIGse8=";
2324
};
2425

25-
propagatedBuildInputs = [ aiohttp ];
26+
build-system = [ setuptools ];
27+
28+
dependencies = [ aiohttp ];
2629

2730
__darwinAllowLocalNetworking = true;
2831

@@ -38,6 +41,7 @@ buildPythonPackage rec {
3841
meta = with lib; {
3942
description = "Retry client for aiohttp";
4043
homepage = "https://github.com/inyutin/aiohttp_retry";
44+
changelog = "https://github.com/inyutin/aiohttp_retry/releases/tag/v${version}";
4145
license = licenses.mit;
4246
maintainers = with maintainers; [ fab ];
4347
};

pkgs/development/python-modules/langchain-openai/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,18 @@ buildPythonPackage rec {
7272

7373
disabledTests = [
7474
# These tests require network access
75+
"test__convert_dict_to_message_tool_call"
7576
"test__get_encoding_model"
76-
"test_get_token_ids"
77-
"test_azure_openai_secrets"
7877
"test_azure_openai_api_key_is_secret_string"
79-
"test_get_num_tokens_from_messages"
8078
"test_azure_openai_api_key_masked_when_passed_from_env"
8179
"test_azure_openai_api_key_masked_when_passed_via_constructor"
80+
"test_azure_openai_secrets"
8281
"test_azure_openai_uses_actual_secret_value_from_secretstr"
8382
"test_azure_serialized_secrets"
84-
"test_openai_get_num_tokens"
8583
"test_chat_openai_get_num_tokens"
84+
"test_get_num_tokens_from_messages"
85+
"test_get_token_ids"
86+
"test_openai_get_num_tokens"
8687
];
8788

8889
pythonImportsCheck = [ "langchain_openai" ];

pkgs/development/python-modules/twilio/default.nix

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
lib,
3-
aiohttp,
43
aiohttp-retry,
4+
aiohttp,
55
aiounittest,
66
buildPythonPackage,
77
cryptography,
88
django,
99
fetchFromGitHub,
1010
mock,
1111
multidict,
12-
pyngrok,
1312
pyjwt,
13+
pyngrok,
1414
pytestCheckHook,
15+
pythonAtLeast,
1516
pythonOlder,
1617
pytz,
1718
requests,
@@ -43,9 +44,6 @@ buildPythonPackage rec {
4344
requests
4445
];
4546

46-
# aiounittest is not supported on 3.12
47-
doCheck = pythonOlder "3.12";
48-
4947
nativeCheckInputs = [
5048
aiounittest
5149
cryptography
@@ -61,11 +59,16 @@ buildPythonPackage rec {
6159
"test_set_user_agent_extensions"
6260
];
6361

64-
disabledTestPaths = [
65-
# Tests require API token
66-
"tests/cluster/test_webhook.py"
67-
"tests/cluster/test_cluster.py"
68-
];
62+
disabledTestPaths =
63+
[
64+
# Tests require API token
65+
"tests/cluster/test_webhook.py"
66+
"tests/cluster/test_cluster.py"
67+
]
68+
++ lib.optionals (pythonAtLeast "3.11") [
69+
# aiounittest is not supported on Python 3.12
70+
"tests/unit/http/test_async_http_client.py"
71+
];
6972

7073
pythonImportsCheck = [ "twilio" ];
7174

0 commit comments

Comments
 (0)