Unverified Commit 07fb35ce authored by Yt's avatar Yt Committed by GitHub
Browse files

Merge pull request #301644 from r-ryantm/auto-update/python312Packages.qdrant-client

python312Packages.qdrant-client: 1.8.0 -> 1.8.2
parents 097c2ba4 ffd81766
Loading
Loading
Loading
Loading
+25 −30
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, grpcio
, grpcio-tools
, httpx
, numpy
, pytestCheckHook
, poetry-core
, pydantic
, pythonOlder
, urllib3
, portalocker
, fastembed
# check inputs
, pytest-asyncio
{
  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.8.2";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "qdrant";
    repo = pname;
    repo = "qdrant-client";
    rev = "refs/tags/v${version}";
    hash = "sha256-skPBKSqtwMfm5Tvvhg0pSOsnrf0tfvsUgwxjnUbj3NA=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
    numpy
    httpx
  dependencies = [
    grpcio
    # typing-extensions
    grpcio-tools
    httpx
    numpy
    portalocker
    pydantic
    urllib3
    portalocker
  ] ++ httpx.optional-dependencies.http2;

  pythonImportsCheck = [
    "qdrant_client"
  ];
  pythonImportsCheck = [ "qdrant_client" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  # tests require network access
  # Tests require network access
  doCheck = false;

  passthru.optional-dependencies = {