2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
environs,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitpython,
|
|
|
|
grpcio,
|
|
|
|
grpcio-testing,
|
|
|
|
minio,
|
|
|
|
mmh3,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
scikit-learn,
|
|
|
|
setuptools-scm,
|
|
|
|
ujson,
|
|
|
|
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-02-07 01:22:34 +00:00
|
|
|
version = "2.3.6";
|
2024-01-25 14:12:00 +00:00
|
|
|
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-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-K7k3MTOEm9+HDwMps9C8Al0Jmp1ptJw3pN1LEBOUz0U=";
|
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
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pymilvus" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|