2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fastembed,
|
|
|
|
fetchFromGitHub,
|
|
|
|
grpcio,
|
|
|
|
grpcio-tools,
|
|
|
|
httpx,
|
|
|
|
numpy,
|
|
|
|
poetry-core,
|
|
|
|
portalocker,
|
|
|
|
pydantic,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
urllib3,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qdrant-client";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.9.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qdrant";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "qdrant-client";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-1QYL2othFA/xTgdj549MA1aVDH6jjiuL+aN2Q/supp8=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-04-29 16:46:19 +00:00
|
|
|
grpcio
|
|
|
|
grpcio-tools
|
2024-04-21 15:54:59 +00:00
|
|
|
httpx
|
|
|
|
numpy
|
|
|
|
portalocker
|
2023-04-29 16:46:19 +00:00
|
|
|
pydantic
|
|
|
|
urllib3
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ httpx.optional-dependencies.http2;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "qdrant_client" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
pytest-asyncio
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Tests require network access
|
2023-10-09 19:29:22 +00:00
|
|
|
doCheck = false;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
fastembed = [ fastembed ];
|
|
|
|
};
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for Qdrant vector search engine";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/qdrant/qdrant-client";
|
|
|
|
changelog = "https://github.com/qdrant/qdrant-client/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|