Unverified Commit ccc67653 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.pymilvus: 2.5.3 -> 2.5.4 (#380690)

parents b6de266f 01858fd1
Loading
Loading
Loading
Loading
+45 −32
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  environs,
  fetchFromGitHub,

  # build-system
  gitpython,
  setuptools,
  setuptools-scm,

  # dependencies
  grpcio,
  grpcio-testing,
  minio,
  mmh3,
  # milvus-lite, (unpackaged)
  pandas,
  pyarrow,
  pytestCheckHook,
  pythonOlder,
  requests,
  scikit-learn,
  setuptools-scm,
  protobuf,
  python-dotenv,
  ujson,
  wheel,

  # tests
  grpcio-testing,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pymilvus";
  version = "2.5.3";
  version = "2.5.4";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "milvus-io";
    repo = "pymilvus";
    tag = "v${version}";
    hash = "sha256-oWuaxiiwheJ7lGPN+nUOGuJLgoZORDmM8h8ND6D3uII=";
    hash = "sha256-w7ZsBXmmkCp3K+YaitZXPHK5pxh/dSJm8aR7xM0VrfU=";
  };

  build-system = [
    gitpython
    setuptools
    setuptools-scm
  ];

  pythonRelaxDeps = [
    "environs"
    "grpcio"
  ];

  nativeBuildInputs = [
    gitpython
    setuptools-scm
    wheel
  pythonRemoveDeps = [
    "milvus-lite"
  ];

  propagatedBuildInputs = [
    environs
  dependencies = [
    grpcio
    minio
    mmh3
    # milvus-lite
    pandas
    pyarrow
    requests
    protobuf
    python-dotenv
    setuptools
    ujson
  ];

  nativeCheckInputs = [
    grpcio-testing
    pytestCheckHook
    scikit-learn
    # scikit-learn
  ];

  pythonImportsCheck = [ "pymilvus" ];

  disabledTests = [ "test_get_commit" ];
  disabledTests = [
    # Tries to read .git
    "test_get_commit"

    # milvus-lite is not packaged
    "test_milvus_lite"
  ];

  disabledTestPaths = [
    # pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on localhost:19530, illegal connection params or server unavailable)>
    "examples/test_bitmap_index.py"
  ];

  meta = with lib; {
  meta = {
    description = "Python SDK for Milvus";
    homepage = "https://github.com/milvus-io/pymilvus";
    changelog = "https://github.com/milvus-io/pymilvus/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ happysalada ];
    changelog = "https://github.com/milvus-io/pymilvus/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ happysalada ];
  };
}