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

61 lines
1.1 KiB
Nix

{
lib,
authlib,
buildPythonPackage,
fetchFromGitHub,
grpcio,
grpcio-health-checking,
grpcio-tools,
httpx,
pydantic,
pythonOlder,
setuptools-scm,
tqdm,
validators,
}:
buildPythonPackage rec {
pname = "weaviate-client";
version = "4.6.7";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "weaviate";
repo = "weaviate-python-client";
rev = "refs/tags/v${version}";
hash = "sha256-Y+KX9ZJhQgXGdweLtnh7vQO7U7WBvT9RR94ro9kw7qg=";
};
pythonRelaxDeps = [
"httpx"
"validators"
];
build-system = [ setuptools-scm ];
dependencies = [
authlib
grpcio
grpcio-health-checking
grpcio-tools
httpx
pydantic
tqdm
validators
];
doCheck = false;
pythonImportsCheck = [ "weaviate" ];
meta = with lib; {
description = "Python native client for easy interaction with a Weaviate instance";
homepage = "https://github.com/weaviate/weaviate-python-client";
changelog = "https://github.com/weaviate/weaviate-python-client/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
};
}