Files
nixpkgs/pkgs/development/python-modules/redisvl/default.nix

58 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.20.0";
pyproject = true;
src = fetchFromGitHub {
owner = "redis";
repo = "redis-vl-python";
tag = "v${finalAttrs.version}";
hash = "sha256-qzGK/M2KXVR9FEutA8xQU9bMYWerOFS2BzNtuAW9n0Q=";
};
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
hythera
];
};
})