weaviate-client: 4.20.5 -> 4.21.0; fix darwin build (#524101)
This commit is contained in:
@@ -18,16 +18,19 @@
|
||||
pydantic,
|
||||
pytest-asyncio,
|
||||
pytest-httpserver,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
requests,
|
||||
stdenv,
|
||||
setuptools-scm,
|
||||
validators,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weaviate-client";
|
||||
version = "4.20.5";
|
||||
version = "4.21.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@@ -36,7 +39,7 @@ buildPythonPackage rec {
|
||||
owner = "weaviate";
|
||||
repo = "weaviate-python-client";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-3CJLD/bew9qx2aDrIwcaMlgwCe8E4bj3ZDh5t0v8Pf8=";
|
||||
hash = "sha256-nGYslKyIQWAwhu5Fa23jXtgBN9q4jjrmBhWv4EO3Vn8=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
@@ -69,13 +72,14 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-httpserver
|
||||
pytest-asyncio
|
||||
pytest-httpserver
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
sed -i '/raw.githubusercontent.com/,+1d' test/test_util.py
|
||||
substituteInPlace pytest.ini \
|
||||
--replace-fail "--benchmark-skip" ""
|
||||
@@ -97,7 +101,10 @@ buildPythonPackage rec {
|
||||
|
||||
enabledTestPaths = [
|
||||
"test"
|
||||
"mock_tests"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"mock_tests" # mock gRPC/HTTP servers fail to bind ports
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
@@ -110,9 +117,5 @@ buildPythonPackage rec {
|
||||
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/${src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ happysalada ];
|
||||
badPlatforms = [
|
||||
# weaviate.exceptions.WeaviateGRPCUnavailableError
|
||||
lib.systems.inspect.patterns.isDarwin
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user