mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
ebc2389134
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`: https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
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";
|
|
rev = "refs/tags/${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 = with lib; {
|
|
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/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|