13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.8.1";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-FRqngDyGO0ReTRtm9617TFLHVXWY9/NQlZHlBP8ukg0=";
27 propagatedBuildInputs = [
35 # many tests require network access and complicated dependencies
38 pythonImportsCheck = [ "gptcache" ];
41 description = "Semantic cache for LLMs and fully integrated with LangChain and llama_index";
42 mainProgram = "gptcache_server";
43 homepage = "https://github.com/zilliztech/GPTCache";
44 changelog = "https://github.com/zilliztech/GPTCache/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ natsukium ];