mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
[Backport release-24.11] python3Packages.weaviate-client: 4.8.0 -> 4.9.3 (#356598)
This commit is contained in:
commit
17fe23d792
@ -12,11 +12,21 @@
|
||||
requests,
|
||||
setuptools-scm,
|
||||
validators,
|
||||
pytestCheckHook,
|
||||
numpy,
|
||||
pytest-httpserver,
|
||||
pandas,
|
||||
polars,
|
||||
h5py,
|
||||
litestar,
|
||||
pytest-asyncio,
|
||||
flask,
|
||||
fastapi,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weaviate-client";
|
||||
version = "4.8.1";
|
||||
version = "4.9.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -25,37 +35,69 @@ buildPythonPackage rec {
|
||||
owner = "weaviate";
|
||||
repo = "weaviate-python-client";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-HSLU9OQMEOCwgxtLj20yJ0Xo9c6SVfMhfVT/F5du17A=";
|
||||
hash = "sha256-F5vU5JKAOztoJwTe+OL3QKHbuhbbXL5WMia2AYrkRS0=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"httpx"
|
||||
"validators"
|
||||
"authlib"
|
||||
];
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
|
||||
dependencies = [
|
||||
authlib
|
||||
grpcio
|
||||
flask
|
||||
grpcio-health-checking
|
||||
grpcio-tools
|
||||
h5py
|
||||
httpx
|
||||
pydantic
|
||||
numpy
|
||||
litestar
|
||||
fastapi
|
||||
polars
|
||||
requests
|
||||
pandas
|
||||
validators
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytest-httpserver
|
||||
pytest-asyncio
|
||||
pytestCheckHook # pytestCheckHook won't work
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
sed -i '/raw.githubusercontent.com/,+1d' test/test_util.py
|
||||
substituteInPlace pytest.ini \
|
||||
--replace-fail "--benchmark-skip" ""
|
||||
rm -rf test/test_embedded.py # Need network
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Need network
|
||||
"test_bearer_token"
|
||||
"test_token_refresh_timeout"
|
||||
"test_with_simple_auth_no_oidc_via_api_key"
|
||||
"test_client_with_extra_options"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"test"
|
||||
"mock_tests"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "weaviate" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python native client for easy interaction with a Weaviate instance";
|
||||
homepage = "https://github.com/weaviate/weaviate-python-client";
|
||||
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ happysalada ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ happysalada ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user