5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fastembed,
|
|
fetchFromGitHub,
|
|
grpcio,
|
|
grpcio-tools,
|
|
httpx,
|
|
numpy,
|
|
poetry-core,
|
|
portalocker,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qdrant-client";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qdrant";
|
|
repo = "qdrant-client";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1QYL2othFA/xTgdj549MA1aVDH6jjiuL+aN2Q/supp8=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
grpcio
|
|
grpcio-tools
|
|
httpx
|
|
numpy
|
|
portalocker
|
|
pydantic
|
|
urllib3
|
|
] ++ httpx.optional-dependencies.http2;
|
|
|
|
pythonImportsCheck = [ "qdrant_client" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
passthru.optional-dependencies = {
|
|
fastembed = [ fastembed ];
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Python client for Qdrant vector search engine";
|
|
homepage = "https://github.com/qdrant/qdrant-client";
|
|
changelog = "https://github.com/qdrant/qdrant-client/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|