Commit d60df245 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

python312Packages.opensearch-py: fix build

parent c532371d
Loading
Loading
Loading
Loading
+18 −5
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -62,6 +63,8 @@ buildPythonPackage rec {
    pytz
  ] ++ optional-dependencies.async;

  __darwinAllowLocalNetworking = true;

  disabledTestPaths = [
    # require network
    "test_opensearchpy/test_async/test_connection.py"
@@ -70,10 +73,20 @@ buildPythonPackage rec {
    "test_opensearchpy/test_server_secured"
  ];

  disabledTests = [
  disabledTests =
    [
      # finds our ca-bundle, but expects something else (/path/to/clientcert/dir or None)
      "test_ca_certs_ssl_cert_dir"
      "test_no_ca_certs"

      # Failing tests, issue opened at https://github.com/opensearch-project/opensearch-py/issues/849
      "test_basicauth_in_request_session"
      "test_callable_in_request_session"
    ]
    ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86) [
      # Flaky tests: OSError: [Errno 48] Address already in use
      "test_redirect_failure_when_allow_redirect_false"
      "test_redirect_success_when_allow_redirect_true"
    ];

  meta = {