Commit 1ef73743 authored by happysalada's avatar happysalada Committed by Yt
Browse files

python310Packages.qdrant-client: 1.1.0 -> 1.5.0

parent db8fd375
Loading
Loading
Loading
Loading
+18 −19
Original line number Diff line number Diff line
@@ -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,31 +38,28 @@ buildPythonPackage rec {
    numpy
    httpx
    grpcio
    typing-extensions
    # typing-extensions
    grpcio-tools
    pydantic
    urllib3
    h2
    portalocker
  ] ++ httpx.optional-dependencies.http2;

  pythonImportsCheck = [
    "qdrant_client"
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [
    "qdrant_client"
  ];
  # tests require network access
  doCheck = false;

  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"
  ];
  passthru.optional-dependencies = {
    fastembed = [ fastembed ];
  };

  meta = with lib; {
    description = "Python client for Qdrant vector search engine";