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