depot/third_party/nixpkgs/pkgs/development/python-modules/pymilvus/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

80 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.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "milvus-io";
repo = "pymilvus";
rev = "refs/tags/v${version}";
hash = "sha256-OKvaJyy6v79wcE9T0v2KwOBKShhDE8g0adIWce0bESs=";
};
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 ];
};
}