Skip to content

Commit dc5794b

Browse files
authored
python3Packages.weaviate-client: 4.8.0 -> 4.9.3 (#356410)
2 parents 71c343e + 8b36f4d commit dc5794b

File tree

1 file changed

+49
-7
lines changed
  • pkgs/development/python-modules/weaviate-client

1 file changed

+49
-7
lines changed

pkgs/development/python-modules/weaviate-client/default.nix

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@
1212
requests,
1313
setuptools-scm,
1414
validators,
15+
pytestCheckHook,
16+
numpy,
17+
pytest-httpserver,
18+
pandas,
19+
polars,
20+
h5py,
21+
litestar,
22+
pytest-asyncio,
23+
flask,
24+
fastapi,
1525
}:
1626

1727
buildPythonPackage rec {
1828
pname = "weaviate-client";
19-
version = "4.8.1";
29+
version = "4.9.3";
2030
pyproject = true;
2131

2232
disabled = pythonOlder "3.8";
@@ -25,37 +35,69 @@ buildPythonPackage rec {
2535
owner = "weaviate";
2636
repo = "weaviate-python-client";
2737
rev = "refs/tags/v${version}";
28-
hash = "sha256-HSLU9OQMEOCwgxtLj20yJ0Xo9c6SVfMhfVT/F5du17A=";
38+
hash = "sha256-F5vU5JKAOztoJwTe+OL3QKHbuhbbXL5WMia2AYrkRS0=";
2939
};
3040

3141
pythonRelaxDeps = [
3242
"httpx"
3343
"validators"
44+
"authlib"
3445
];
3546

3647
build-system = [ setuptools-scm ];
3748

38-
3949
dependencies = [
4050
authlib
4151
grpcio
52+
flask
4253
grpcio-health-checking
4354
grpcio-tools
55+
h5py
4456
httpx
4557
pydantic
58+
numpy
59+
litestar
60+
fastapi
61+
polars
4662
requests
63+
pandas
4764
validators
4865
];
4966

50-
doCheck = false;
67+
nativeCheckInputs = [
68+
pytest-httpserver
69+
pytest-asyncio
70+
pytestCheckHook # pytestCheckHook won't work
71+
];
72+
73+
preCheck = ''
74+
export HOME=$(mktemp -d)
75+
sed -i '/raw.githubusercontent.com/,+1d' test/test_util.py
76+
substituteInPlace pytest.ini \
77+
--replace-fail "--benchmark-skip" ""
78+
rm -rf test/test_embedded.py # Need network
79+
'';
80+
81+
disabledTests = [
82+
# Need network
83+
"test_bearer_token"
84+
"test_token_refresh_timeout"
85+
"test_with_simple_auth_no_oidc_via_api_key"
86+
"test_client_with_extra_options"
87+
];
88+
89+
pytestFlagsArray = [
90+
"test"
91+
"mock_tests"
92+
];
5193

5294
pythonImportsCheck = [ "weaviate" ];
5395

54-
meta = with lib; {
96+
meta = {
5597
description = "Python native client for easy interaction with a Weaviate instance";
5698
homepage = "https://github.com/weaviate/weaviate-python-client";
5799
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
58-
license = licenses.mit;
59-
maintainers = with maintainers; [ happysalada ];
100+
license = lib.licenses.mit;
101+
maintainers = with lib.maintainers; [ happysalada ];
60102
};
61103
}

0 commit comments

Comments
 (0)