nixpkgs/pkgs/development/python-modules/redisvl/default.nix
2026-06-26 22:26:06 +00:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
numpy,
pyyaml,
redis,
pydantic,
tenacity,
ml-dtypes,
python-ulid,
jsonpath-ng,
}:
buildPythonPackage (finalAttrs: {
pname = "redisvl";
version = "0.22.0";
pyproject = true;
src = fetchFromGitHub {
owner = "redis";
repo = "redis-vl-python";
tag = "v${finalAttrs.version}";
hash = "sha256-0RgGNG6u6ZNraCd7YV10tajDYPHBIi7TbOYsbTR0tk8=";
};
build-system = [ hatchling ];
dependencies = [
numpy
pyyaml
redis
pydantic
tenacity
ml-dtypes
python-ulid
jsonpath-ng
];
pythonImportsCheck = [ "redisvl" ];
# tests require a live Redis server with the search/vector module
doCheck = false;
meta = {
description = "Python client library and CLI for using Redis as a vector database";
homepage = " https://redisvl.com";
changelog = "https://github.com/redis/redis-vl-python/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "rvl";
maintainers = with lib.maintainers; [ codgician ];
teams = [ lib.teams.redis ];
};
})