depot/third_party/nixpkgs/pkgs/development/python-modules/weaviate-client/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

63 lines
1.2 KiB
Nix

{
lib,
authlib,
buildPythonPackage,
fetchFromGitHub,
grpcio,
grpcio-health-checking,
grpcio-tools,
httpx,
pydantic,
pythonOlder,
pythonRelaxDepsHook,
setuptools-scm,
tqdm,
validators,
}:
buildPythonPackage rec {
pname = "weaviate-client";
version = "4.6.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "weaviate";
repo = "weaviate-python-client";
rev = "refs/tags/v${version}";
hash = "sha256-v8I0ovH99q5uYlnbZsQYgL9mg3n9i59W2n6/d9IiKyQ=";
};
pythonRelaxDeps = [
"httpx"
"validators"
];
build-system = [ setuptools-scm ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
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 ];
};
}