depot/third_party/nixpkgs/pkgs/development/python-modules/pymilvus/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

72 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, environs
, fetchFromGitHub
, grpcio
, grpcio-testing
, mmh3
, pandas
, pytestCheckHook
, python
, pythonOlder
, pythonRelaxDepsHook
, scikit-learn
, setuptools-scm
, ujson
}:
buildPythonPackage rec {
pname = "pymilvus";
version = "2.2.13";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "milvus-io";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-NTzdbmI2vNvNBFhN+xyZewH4b6l1BbKkDDE7rLNJ4IE=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
pythonRelaxDeps = [
"grpcio"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];
propagatedBuildInputs = [
environs
grpcio
mmh3
pandas
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 ];
};
}