File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
pkgs/development/python-modules/gradio Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 44 buildPythonPackage ,
55 fetchFromGitHub ,
66 nix-update-script ,
7- pythonOlder ,
8- # pyproject
7+
8+ # build-system
99 hatchling ,
1010 hatch-requirements-txt ,
1111 hatch-fancy-pypi-readme ,
12- # runtime
12+
13+ # dependencies
1314 setuptools ,
1415 fsspec ,
1516 httpx ,
1617 huggingface-hub ,
1718 packaging ,
1819 typing-extensions ,
1920 websockets ,
20- # checkInputs
21- pytestCheckHook ,
22- pytest-asyncio ,
21+
22+ # tests
23+ gradio ,
2324 pydub ,
25+ pytest-asyncio ,
26+ pytestCheckHook ,
2427 rich ,
25- tomlkit ,
26- gradio ,
2728 safehttpx ,
29+ tomlkit ,
30+ writableTmpDirAsHomeHook ,
2831} :
2932
3033buildPythonPackage rec {
3134 pname = "gradio-client" ;
32- version = "1.5.3 " ;
35+ version = "1.7.2 " ;
3336 pyproject = true ;
3437
35- disabled = pythonOlder "3.8" ;
36-
3738 # no tests on pypi
3839 src = fetchFromGitHub {
3940 owner = "gradio-app" ;
4041 repo = "gradio" ;
4142 # not to be confused with @gradio/client@${version}
4243 tag = "gradio_client@${ version } " ;
4344 sparseCheckout = [ "client/python" ] ;
44- hash = "sha256-u4GQYtCeAMDqRRbZGtjfqIHwuHyxUpw6kRE75SJMALg =" ;
45+ hash = "sha256-9hEls6f3aBNg7W2RGhu68mJSGlUScpNqMGsdHxTGyRY =" ;
4546 } ;
46- prePatch = ''
47- cd client/python
48- '' ;
47+
48+ sourceRoot = "${ src . name } /client/python" ;
4949
5050 # upstream adds upper constraints because they can, not because the need to
5151 # https://github.com/gradio-app/gradio/pull/4885
@@ -71,20 +71,20 @@ buildPythonPackage rec {
7171 ] ;
7272
7373 nativeCheckInputs = [
74- pytestCheckHook
75- pytest-asyncio
74+ gradio . sans-reverse-dependencies
7675 pydub
76+ pytest-asyncio
77+ pytestCheckHook
7778 rich
78- tomlkit
7979 safehttpx
80- gradio . sans-reverse-dependencies
80+ tomlkit
81+ writableTmpDirAsHomeHook
8182 ] ;
8283 # ensuring we don't propagate this intermediate build
8384 disallowedReferences = [ gradio . sans-reverse-dependencies ] ;
8485
8586 # Add a pytest hook skipping tests that access network, marking them as "Expected fail" (xfail).
8687 preCheck = ''
87- export HOME=$TMPDIR
8888 cat ${ ./conftest-skip-network-errors.py } >> test/conftest.py
8989 '' ;
9090
You can’t perform that action at this time.
0 commit comments