python312Packages.opensearch-py: fix build

This commit is contained in:
Pol Dellaiera
2024-11-21 17:12:34 +01:00
parent c532371d84
commit d60df245ce
@@ -1,5 +1,6 @@
{
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,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";