depot/third_party/nixpkgs/pkgs/development/python-modules/qdrant-client/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

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.6.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "qdrant";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-UGD8hl0KN6PzLvmE4ZK+GsQbM3Bp8t9Mz4K62N6Zv/s=";
};
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 ];
};
}