2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-04-29 16:46:19 +00:00
|
|
|
, environs
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, gitpython
|
2023-04-12 12:48:02 +00:00
|
|
|
, grpcio
|
2023-04-29 16:46:19 +00:00
|
|
|
, grpcio-testing
|
2024-01-25 14:12:00 +00:00
|
|
|
, minio
|
2023-04-12 12:48:02 +00:00
|
|
|
, mmh3
|
2023-04-29 16:46:19 +00:00
|
|
|
, pandas
|
2024-01-25 14:12:00 +00:00
|
|
|
, pyarrow
|
2023-04-29 16:46:19 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
2024-01-25 14:12:00 +00:00
|
|
|
, requests
|
2023-04-29 16:46:19 +00:00
|
|
|
, scikit-learn
|
2023-04-12 12:48:02 +00:00
|
|
|
, setuptools-scm
|
2023-04-29 16:46:19 +00:00
|
|
|
, ujson
|
2023-10-09 19:29:22 +00:00
|
|
|
, wheel
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymilvus";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.3.5";
|
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milvus-io";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "pymilvus";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-OKvaJyy6v79wcE9T0v2KwOBKShhDE8g0adIWce0bESs=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonRelaxDeps = [
|
2024-01-25 14:12:00 +00:00
|
|
|
"environs"
|
2023-04-29 16:46:19 +00:00
|
|
|
"grpcio"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
gitpython
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools-scm
|
2023-10-09 19:29:22 +00:00
|
|
|
wheel
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
environs
|
2023-04-12 12:48:02 +00:00
|
|
|
grpcio
|
2024-01-25 14:12:00 +00:00
|
|
|
minio
|
2023-04-12 12:48:02 +00:00
|
|
|
mmh3
|
2023-04-29 16:46:19 +00:00
|
|
|
pandas
|
2024-01-25 14:12:00 +00:00
|
|
|
pyarrow
|
|
|
|
requests
|
2023-04-29 16:46:19 +00:00
|
|
|
ujson
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
grpcio-testing
|
|
|
|
pytestCheckHook
|
|
|
|
scikit-learn
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pymilvus"
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_get_commit"
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-04-29 16:46:19 +00:00
|
|
|
description = "Python SDK for Milvus";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/milvus-io/pymilvus";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/milvus-io/pymilvus/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.mit;
|
2023-04-29 16:46:19 +00:00
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|