File tree Expand file tree Collapse file tree 1 file changed +48
-1
lines changed
pkgs/development/python-modules/shiny Expand file tree Collapse file tree 1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change 33 buildPythonPackage ,
44 fetchFromGitHub ,
55 setuptools ,
6+ setuptools-scm ,
67
78 appdirs ,
89 asgiref ,
910 click ,
1011 htmltools ,
12+ libsass ,
1113 linkify-it-py ,
1214 markdown-it-py ,
1315 mdit-py-plugins ,
16+ narwhals ,
17+ orjson ,
18+ packaging ,
19+ prompt-toolkit ,
1420 python-multipart ,
1521 questionary ,
1622 starlette ,
23+ typing-extensions ,
1724 uvicorn ,
1825 watchfiles ,
1926 websockets ,
2027
28+ anthropic ,
29+ cacert ,
30+ google-generativeai ,
31+ langchain-core ,
32+ ollama ,
33+ openai ,
2134 pytestCheckHook ,
2235 pytest-asyncio ,
2336 pytest-playwright ,
2437 pytest-xdist ,
2538 pytest-timeout ,
2639 pytest-rerunfailures ,
2740 pandas ,
41+ polars ,
2842} :
2943
3044buildPythonPackage rec {
@@ -39,7 +53,11 @@ buildPythonPackage rec {
3953 hash = "sha256-8bo2RHuIP7X7EaOlHd+2m4XU287owchAwiqPnpjKFjI=" ;
4054 } ;
4155
42- build-system = [ setuptools ] ;
56+ build-system = [
57+ setuptools
58+ setuptools-scm
59+ ] ;
60+
4361 dependencies = [
4462 appdirs
4563 asgiref
@@ -48,23 +66,52 @@ buildPythonPackage rec {
4866 linkify-it-py
4967 markdown-it-py
5068 mdit-py-plugins
69+ narwhals
70+ orjson
71+ packaging
72+ prompt-toolkit
5173 python-multipart
5274 questionary
75+ setuptools
5376 starlette
77+ typing-extensions
5478 uvicorn
5579 watchfiles
5680 websockets
5781 ] ;
5882
83+ optional-dependencies = {
84+ theme = [
85+ libsass
86+ # FIXME package brand-yml
87+ ] ;
88+ } ;
89+
5990 pythonImportsCheck = [ "shiny" ] ;
91+
6092 nativeCheckInputs = [
93+ anthropic
94+ google-generativeai
95+ langchain-core
96+ ollama
97+ openai
6198 pytestCheckHook
6299 pytest-asyncio
63100 pytest-playwright
64101 pytest-xdist
65102 pytest-timeout
66103 pytest-rerunfailures
67104 pandas
105+ polars
106+ ] ++ lib . flatten ( lib . attrValues optional-dependencies ) ;
107+
108+ env . SSL_CERT_FILE = "${ cacert } /etc/ssl/certs/ca-bundle.crt" ;
109+
110+ disabledTests = [
111+ # ValueError: A tokenizer is required to impose `token_limits` on messages
112+ "test_chat_message_trimming"
113+ # https://github.com/posit-dev/py-shiny/pull/1791
114+ "test_as_ollama_message"
68115 ] ;
69116
70117 meta = {
You can’t perform that action at this time.
0 commit comments