python312Packages.aiohttp-retry: 2.8.3 -> 2.9.0 (#351565)

This commit is contained in:
jopejoe1 2024-11-15 21:19:01 +01:00 committed by GitHub
commit effe68307b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 19 deletions

View File

@ -6,23 +6,26 @@
pytestCheckHook,
pytest-aiohttp,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiohttp-retry";
version = "2.8.3";
format = "setuptools";
version = "2.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "inyutin";
repo = "aiohttp_retry";
rev = "v${version}";
hash = "sha256-Zr68gx8ZR9jKrogmqaFLvpBAIHE9ptHm0zZ/b49cCLw=";
rev = "refs/tags/v${version}";
hash = "sha256-9riIGQDxC+Ee16itSWJWobPkmuy7Mkn2eyTkevIGse8=";
};
propagatedBuildInputs = [ aiohttp ];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
__darwinAllowLocalNetworking = true;
@ -38,6 +41,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Retry client for aiohttp";
homepage = "https://github.com/inyutin/aiohttp_retry";
changelog = "https://github.com/inyutin/aiohttp_retry/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};

View File

@ -72,17 +72,18 @@ buildPythonPackage rec {
disabledTests = [
# These tests require network access
"test__convert_dict_to_message_tool_call"
"test__get_encoding_model"
"test_get_token_ids"
"test_azure_openai_secrets"
"test_azure_openai_api_key_is_secret_string"
"test_get_num_tokens_from_messages"
"test_azure_openai_api_key_masked_when_passed_from_env"
"test_azure_openai_api_key_masked_when_passed_via_constructor"
"test_azure_openai_secrets"
"test_azure_openai_uses_actual_secret_value_from_secretstr"
"test_azure_serialized_secrets"
"test_openai_get_num_tokens"
"test_chat_openai_get_num_tokens"
"test_get_num_tokens_from_messages"
"test_get_token_ids"
"test_openai_get_num_tokens"
];
pythonImportsCheck = [ "langchain_openai" ];

View File

@ -1,7 +1,7 @@
{
lib,
aiohttp,
aiohttp-retry,
aiohttp,
aiounittest,
buildPythonPackage,
cryptography,
@ -9,9 +9,10 @@
fetchFromGitHub,
mock,
multidict,
pyngrok,
pyjwt,
pyngrok,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
pytz,
requests,
@ -43,9 +44,6 @@ buildPythonPackage rec {
requests
];
# aiounittest is not supported on 3.12
doCheck = pythonOlder "3.12";
nativeCheckInputs = [
aiounittest
cryptography
@ -61,11 +59,16 @@ buildPythonPackage rec {
"test_set_user_agent_extensions"
];
disabledTestPaths = [
# Tests require API token
"tests/cluster/test_webhook.py"
"tests/cluster/test_cluster.py"
];
disabledTestPaths =
[
# Tests require API token
"tests/cluster/test_webhook.py"
"tests/cluster/test_cluster.py"
]
++ lib.optionals (pythonAtLeast "3.11") [
# aiounittest is not supported on Python 3.12
"tests/unit/http/test_async_http_client.py"
];
pythonImportsCheck = [ "twilio" ];