lol

python310Packages.litellm: init at 0.1.574

python310Packages.litellm: remove import check phase because of network call

pythonPackages.litellm: 0.1.574 -> 0.1.590

+55
+53
pkgs/development/python-modules/litellm/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , poetry-core 5 + , importlib-metadata 6 + , openai 7 + , python-dotenv 8 + , tiktoken 9 + }: 10 + let 11 + version = "0.1.590"; 12 + in 13 + buildPythonPackage rec { 14 + pname = "litellm"; 15 + format = "pyproject"; 16 + inherit version; 17 + 18 + src = fetchFromGitHub { 19 + owner = "BerriAI"; 20 + repo = "litellm"; 21 + rev = "7cb96e86b4753008cbf8d116aca514750e98d360"; 22 + hash = "sha256-ITMcwGjelNfNGnfBmmdu0Xwph4u0mxiFSfHnysUxWCQ="; 23 + }; 24 + 25 + postPatch = '' 26 + rm -rf dist 27 + ''; 28 + 29 + nativeBuildInputs = [ 30 + poetry-core 31 + ]; 32 + 33 + propagatedBuildInputs = [ 34 + importlib-metadata 35 + openai 36 + python-dotenv 37 + tiktoken 38 + ]; 39 + 40 + # the import check phase fails trying to do a network request to openai 41 + # pythonImportsCheck = [ "litellm" ]; 42 + 43 + # no tests 44 + doCheck = false; 45 + 46 + meta = with lib; { 47 + description = "Use any LLM as a drop in replacement for gpt-3.5-turbo. Use Azure, OpenAI, Cohere, Anthropic, Ollama, VLLM, Sagemaker, HuggingFace, Replicate (100+ LLMs)"; 48 + homepage = "https://github.com/BerriAI/litellm"; 49 + license = licenses.mit; 50 + changelog = "https://github.com/BerriAI/litellm/releases/tag/v${version}"; 51 + maintainers = with maintainers; [ happysalada ]; 52 + }; 53 + }
+2
pkgs/top-level/python-packages.nix
··· 6188 6188 6189 6189 lit = callPackage ../development/python-modules/lit { }; 6190 6190 6191 + litellm = callPackage ../development/python-modules/litellm { }; 6192 + 6191 6193 litemapy = callPackage ../development/python-modules/litemapy { }; 6192 6194 6193 6195 littleutils = callPackage ../development/python-modules/littleutils { };