about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymilvus/default.nix
blob: 3a498ee4ffa21da24859fb2cac46fd2433bffaef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  lib,
  buildPythonPackage,
  environs,
  fetchFromGitHub,
  gitpython,
  grpcio,
  grpcio-testing,
  minio,
  mmh3,
  pandas,
  pyarrow,
  pytestCheckHook,
  pythonOlder,
  pythonRelaxDepsHook,
  requests,
  scikit-learn,
  setuptools-scm,
  ujson,
  wheel,
}:

buildPythonPackage rec {
  pname = "pymilvus";
  version = "2.3.6";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "milvus-io";
    repo = "pymilvus";
    rev = "refs/tags/v${version}";
    hash = "sha256-K7k3MTOEm9+HDwMps9C8Al0Jmp1ptJw3pN1LEBOUz0U=";
  };

  pythonRelaxDeps = [
    "environs"
    "grpcio"
  ];

  nativeBuildInputs = [
    gitpython
    pythonRelaxDepsHook
    setuptools-scm
    wheel
  ];

  propagatedBuildInputs = [
    environs
    grpcio
    minio
    mmh3
    pandas
    pyarrow
    requests
    ujson
  ];

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

  pythonImportsCheck = [ "pymilvus" ];

  disabledTests = [ "test_get_commit" ];

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