From 7f868b78f96749d36f895f0c235a48dd99429d8d Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 25 May 2026 17:19:47 +0200 Subject: [PATCH 1/2] weaviate-client: fix darwin build --- .../python-modules/weaviate-client/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index 86d56facfead..a053f091a3a3 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -21,8 +21,10 @@ pytestCheckHook, pythonOlder, requests, + stdenv, setuptools-scm, validators, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -72,10 +74,10 @@ buildPythonPackage rec { pytest-httpserver pytest-asyncio 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 +99,9 @@ buildPythonPackage rec { enabledTestPaths = [ "test" - "mock_tests" + ] + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + "mock_tests" # mock gRPC/HTTP servers fail to bind ports in the Darwin sandbox ]; __darwinAllowLocalNetworking = true; @@ -110,9 +114,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 - ]; }; } From eea9d4abefc2da5950ae24ca912d4c35003097bb Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 25 May 2026 17:20:43 +0200 Subject: [PATCH 2/2] weaviate-client: 4.20.5 -> 4.21.0 --- .../python-modules/weaviate-client/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index a053f091a3a3..0588073bf039 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -18,6 +18,7 @@ pydantic, pytest-asyncio, pytest-httpserver, + pytest-xdist, pytestCheckHook, pythonOlder, requests, @@ -29,7 +30,7 @@ buildPythonPackage rec { pname = "weaviate-client"; - version = "4.20.5"; + version = "4.21.0"; pyproject = true; disabled = pythonOlder "3.12"; @@ -38,7 +39,7 @@ buildPythonPackage rec { owner = "weaviate"; repo = "weaviate-python-client"; tag = "v${version}"; - hash = "sha256-3CJLD/bew9qx2aDrIwcaMlgwCe8E4bj3ZDh5t0v8Pf8="; + hash = "sha256-nGYslKyIQWAwhu5Fa23jXtgBN9q4jjrmBhWv4EO3Vn8="; }; pythonRelaxDeps = [ @@ -71,8 +72,9 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytest-httpserver pytest-asyncio + pytest-httpserver + pytest-xdist pytestCheckHook writableTmpDirAsHomeHook ]; @@ -99,9 +101,10 @@ buildPythonPackage rec { enabledTestPaths = [ "test" - ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ - "mock_tests" # mock gRPC/HTTP servers fail to bind ports in the Darwin sandbox + ]; + + disabledTestPaths = [ + "mock_tests" # mock gRPC/HTTP servers fail to bind ports ]; __darwinAllowLocalNetworking = true;