depot/third_party/nixpkgs/pkgs/development/python-modules/weaviate-client/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

61 lines
1.2 KiB
Nix

{
lib,
authlib,
buildPythonPackage,
fetchFromGitHub,
grpcio,
grpcio-health-checking,
grpcio-tools,
httpx,
pydantic,
pythonOlder,
requests,
setuptools-scm,
validators,
}:
buildPythonPackage rec {
pname = "weaviate-client";
version = "4.8.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "weaviate";
repo = "weaviate-python-client";
rev = "refs/tags/v${version}";
hash = "sha256-JVn9Xhq7MJD+o6DA/EaW1NNnvsjjqyW+pmFctuQStgo=";
};
pythonRelaxDeps = [
"httpx"
"validators"
];
build-system = [ setuptools-scm ];
dependencies = [
authlib
grpcio
grpcio-health-checking
grpcio-tools
httpx
pydantic
requests
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 ];
};
}