File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
pkgs/development/python-modules/litellm Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 55 azure-identity ,
66 azure-keyvault-secrets ,
77 backoff ,
8+ boto3 ,
89 buildPythonPackage ,
910 click ,
1011 cryptography ,
2526 pydantic ,
2627 pyjwt ,
2728 pynacl ,
29+ python ,
2830 python-dotenv ,
2931 python-multipart ,
3032 pythonOlder ,
3133 pyyaml ,
3234 requests ,
3335 resend ,
36+ rich ,
3437 rq ,
3538 tiktoken ,
3639 tokenizers ,
3740 uvloop ,
3841 uvicorn ,
42+ websockets ,
3943 nixosTests ,
4044 nix-update-script ,
4145} :
@@ -63,7 +67,6 @@ buildPythonPackage rec {
6367 importlib-metadata
6468 jinja2
6569 jsonschema
66- mcp
6770 openai
6871 pydantic
6972 python-dotenv
@@ -76,36 +79,51 @@ buildPythonPackage rec {
7679 proxy = [
7780 apscheduler
7881 backoff
82+ boto3
7983 cryptography
8084 fastapi
8185 fastapi-sso
8286 gunicorn
87+ mcp
8388 orjson
8489 pyjwt
90+ pynacl
8591 python-multipart
8692 pyyaml
93+ rich
8794 rq
8895 uvloop
8996 uvicorn
97+ websockets
9098 ] ;
99+
91100 extra_proxy = [
92101 azure-identity
93102 azure-keyvault-secrets
94103 google-cloud-kms
95104 prisma
96- pynacl
97105 resend
98106 ] ;
99107 } ;
100108
101- pythonImportsCheck = [ "litellm" ] ;
109+ pythonImportsCheck = [
110+ "litellm"
111+ "litellm_enterprise"
112+ ] ;
102113
103114 # Relax dependency check on openai, may not be needed in the future
104115 pythonRelaxDeps = [ "openai" ] ;
105116
106117 # access network
107118 doCheck = false ;
108119
120+ postFixup = ''
121+ # Symlink litellm_enterprise to make it discoverable
122+ pushd $out/lib/python${ python . pythonVersion } /site-packages
123+ ln -s enterprise/litellm_enterprise litellm_enterprise
124+ popd
125+ '' ;
126+
109127 passthru = {
110128 tests = { inherit ( nixosTests ) litellm ; } ;
111129 updateScript = nix-update-script {
You can’t perform that action at this time.
0 commit comments