nixpkgs/pkgs/development/python-modules/pymilvus/default.nix
2024-01-27 11:33:08 +00:00

81 lines
1.3 KiB
Nix

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