Files
nixpkgs/pkgs/development/python-modules/gptcache/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1021 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cachetools,
numpy,
pythonOlder,
redis,
redis-om,
requests,
}:
buildPythonPackage rec {
pname = "gptcache";
version = "0.1.44";
format = "setuptools";
disabled = pythonOlder "3.8.1";
src = fetchFromGitHub {
owner = "zilliztech";
repo = "GPTCache";
tag = version;
hash = "sha256-FRqngDyGO0ReTRtm9617TFLHVXWY9/NQlZHlBP8ukg0=";
};
propagatedBuildInputs = [
cachetools
numpy
redis
redis-om
requests
];
# many tests require network access and complicated dependencies
doCheck = false;
pythonImportsCheck = [ "gptcache" ];
meta = {
description = "Semantic cache for LLMs and fully integrated with LangChain and llama_index";
mainProgram = "gptcache_server";
homepage = "https://github.com/zilliztech/GPTCache";
changelog = "https://github.com/zilliztech/GPTCache/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}