Commit 3c463d5d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.python-binance: disable failing tests

parent 52dbf8ed
Loading
Loading
Loading
Loading
+29 −11
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  aioresponses,
  buildPythonPackage,
  dateparser,
  fetchFromGitHub,
  fetchpatch,
  pycryptodome,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  requests,
  requests-mock,
  requests,
  six,
  ujson,
  websockets,
@@ -29,14 +30,6 @@ buildPythonPackage rec {
    hash = "sha256-nsJuHxPXhMBRY4BUDDLj5sHK/GuJA0pBU3RGUDxVm50=";
  };

  patches = [
    (fetchpatch {
      name = "fix-unable-to-determine-version-error.patch";
      url = "https://github.com/sammchardy/python-binance/commit/1b9dd4853cafccf6cdacc13bb64a18632a79a6f1.patch";
      hash = "sha256-6KRHm2cZRcdD6qMdRAwlea4qLZ1/1YFzZAQ7Ph4XMCs=";
    })
  ];

  propagatedBuildInputs = [
    aiohttp
    dateparser
@@ -48,6 +41,8 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    aioresponses
    pytest-asyncio
    pytestCheckHook
    requests-mock
  ];
@@ -55,7 +50,30 @@ buildPythonPackage rec {
  disabledTestPaths = [
    # Tests require network access
    "tests/test_api_request.py"
    "tests/test_historical_klines.py"
    "tests/test_async_client.py"
    "tests/test_async_client_futures.py"
    "tests/test_async_client_margin.py"
    "tests/test_async_client_options.py"
    "tests/test_async_client_portfolio.py"
    "tests/test_async_client_ws_api.py"
    "tests/test_async_client_ws_futures_requests.py"
    "tests/test_client.py"
    "tests/test_client_futures.py"
    "tests/test_client_gift_card.py"
    "tests/test_client_margin.py"
    "tests/test_client_options.py"
    "tests/test_client_portfolio.py"
    "tests/test_client_ws_api.py"
    "tests/test_client_ws_futures_requests.py"
    "tests/test_depth_cache.py"
    "tests/test_get_order_book.py"
    "tests/test_ping.py"
    "tests/test_reconnecting_websocket.py"
    "tests/test_socket_manager.py"
    "tests/test_streams.py"
    "tests/test_threaded_socket_manager.py"
    "tests/test_threaded_stream.py"
    "tests/test_ws_api.py"
  ];

  pythonImportsCheck = [ "binance" ];