504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, grpcio
|
|
, grpcio-tools
|
|
, httpx
|
|
, numpy
|
|
, pytestCheckHook
|
|
, poetry-core
|
|
, pydantic
|
|
, pythonOlder
|
|
, urllib3
|
|
, portalocker
|
|
, fastembed
|
|
# check inputs
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qdrant-client";
|
|
version = "1.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qdrant";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-fC28uQK4mAN21VdAeT4NbezZY1qZVOIK3rs3v31S39Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
httpx
|
|
grpcio
|
|
# typing-extensions
|
|
grpcio-tools
|
|
pydantic
|
|
urllib3
|
|
portalocker
|
|
] ++ 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 ];
|
|
};
|
|
}
|