depot/third_party/nixpkgs/pkgs/development/python-modules/pymilvus/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

75 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
environs,
fetchFromGitHub,
gitpython,
grpcio,
grpcio-testing,
minio,
mmh3,
pandas,
pyarrow,
pytestCheckHook,
pythonOlder,
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
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 ];
};
}