Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
990 B · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, cachetools, numpy, pythonOlder, redis, redis-om, requests}:
buildPythonPackage rec { pname = "gptcache"; version = "0.1.43"; format = "setuptools";
disabled = pythonOlder "3.8.1";
src = fetchFromGitHub { owner = "zilliztech"; repo = "GPTCache"; rev = "refs/tags/${version}"; hash = "sha256-EDsHzl55j4sehbKk0/be+WOl83f1/7zPLvPyzKnTBP4="; };
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"; homepage = "https://github.com/zilliztech/GPTCache"; changelog = "https://github.com/zilliztech/GPTCache/releases/tag/${src.rev}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; };}