mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
81 lines
1.3 KiB
Nix
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 ];
|
|
};
|
|
}
|