Unverified Commit effe6830 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

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

parents b9b682e3 73d9296e
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -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 ];
  };
+5 −4
Original line number Diff line number Diff line
@@ -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" ];
+13 −10
Original line number Diff line number Diff line
{
  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,10 +59,15 @@ buildPythonPackage rec {
    "test_set_user_agent_extensions"
  ];

  disabledTestPaths = [
  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" ];