Skip to content

Commit

Permalink
python312Packages.opensearch-py: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 21, 2024
1 parent 7e0bb43 commit ec6fdda
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions pkgs/development/python-modules/opensearch-py/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

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

__darwinAllowLocalNetworking = true;

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

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"
];
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 = {
description = "Python low-level client for OpenSearch";
Expand Down

0 comments on commit ec6fdda

Please sign in to comment.