diff --git a/pkgs/development/python-modules/qdrant-client/default.nix b/pkgs/development/python-modules/qdrant-client/default.nix index 57e5ab8ee019..643a67d898ed 100644 --- a/pkgs/development/python-modules/qdrant-client/default.nix +++ b/pkgs/development/python-modules/qdrant-client/default.nix @@ -3,20 +3,22 @@ , fetchFromGitHub , grpcio , grpcio-tools -, h2 , httpx , numpy , pytestCheckHook , poetry-core , pydantic , pythonOlder -, typing-extensions , urllib3 +, portalocker +, fastembed +# check inputs +, pytest-asyncio }: buildPythonPackage rec { pname = "qdrant-client"; - version = "1.1.0"; + version = "1.5.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -25,7 +27,7 @@ buildPythonPackage rec { owner = "qdrant"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-rpNTV3VBTND39iW/kve0aG1KJzAIl1whmhH+e6RbOhw="; + hash = "sha256-k+ggx4QyVduqtV4WwHELyQDAHdaGE0bizpG1ie6x7FM="; }; nativeBuildInputs = [ @@ -36,32 +38,29 @@ buildPythonPackage rec { numpy httpx grpcio - typing-extensions + # typing-extensions grpcio-tools pydantic urllib3 - h2 - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; + portalocker + ] ++ httpx.optional-dependencies.http2; pythonImportsCheck = [ "qdrant_client" ]; - disabledTests = [ - # Tests require network access - "test_conditional_payload_update" - "test_locks" - "test_multiple_vectors" - "test_points_crud" - "test_qdrant_client_integration" - "test_quantization_config" - "test_record_upload" + 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";