1{ lib
2, buildPythonPackage
3, environs
4, fetchFromGitHub
5, gitpython
6, grpcio
7, grpcio-testing
8, mmh3
9, pandas
10, pytestCheckHook
11, python
12, pythonOlder
13, pythonRelaxDepsHook
14, scikit-learn
15, setuptools-scm
16, ujson
17, wheel
18}:
19
20buildPythonPackage rec {
21 pname = "pymilvus";
22 version = "2.3.0";
23 format = "pyproject";
24
25 disabled = pythonOlder "3.7";
26
27 src = fetchFromGitHub {
28 owner = "milvus-io";
29 repo = pname;
30 rev = "refs/tags/v${version}";
31 hash = "sha256-hp00iUT1atyTQk532z7VAajpfvtnKE8W2la9MW7NxoE=";
32 };
33
34 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
35
36 pythonRelaxDeps = [
37 "grpcio"
38 ];
39
40 nativeBuildInputs = [
41 gitpython
42 pythonRelaxDepsHook
43 setuptools-scm
44 wheel
45 ];
46
47 propagatedBuildInputs = [
48 environs
49 grpcio
50 mmh3
51 pandas
52 ujson
53 ];
54
55 nativeCheckInputs = [
56 grpcio-testing
57 pytestCheckHook
58 scikit-learn
59 ];
60
61 pythonImportsCheck = [
62 "pymilvus"
63 ];
64
65 disabledTests = [
66 "test_get_commit"
67 ];
68
69 meta = with lib; {
70 description = "Python SDK for Milvus";
71 homepage = "https://github.com/milvus-io/pymilvus";
72 changelog = "https://github.com/milvus-io/pymilvus/releases/tag/v${version}";
73 license = licenses.mit;
74 maintainers = with maintainers; [ happysalada ];
75 };
76}