@@ -87,6 +87,7 @@ buildPythonPackage rec {
8787 "tomlkit"
8888 "aiofiles"
8989 "markupsafe"
90+ "pillow"
9091 ] ;
9192
9293 pythonRemoveDeps = [
@@ -169,87 +170,89 @@ buildPythonPackage rec {
169170 ulimit -n 4096
170171 '' ;
171172
172- disabledTests = [
173- # Actually broken
174- "test_mount_gradio_app"
175- "test_processing_utils_backwards_compatibility" # type error
173+ disabledTests =
174+ [
175+ # Actually broken
176+ "test_mount_gradio_app"
177+ "test_processing_utils_backwards_compatibility" # type error
176178
177- # requires network, it caught our xfail exception
178- "test_error_analytics_successful"
179+ # requires network, it caught our xfail exception
180+ "test_error_analytics_successful"
179181
180- # Flaky, tries to pin dependency behaviour. Sensitive to dep versions
181- # These error only affect downstream use of the check dependencies.
182- "test_no_color"
183- "test_in_interface_as_output"
184- "test_should_warn_url_not_having_version"
182+ # Flaky, tries to pin dependency behaviour. Sensitive to dep versions
183+ # These error only affect downstream use of the check dependencies.
184+ "test_no_color"
185+ "test_in_interface_as_output"
186+ "test_should_warn_url_not_having_version"
185187
186- # Flaky, unknown reason
187- "test_in_interface"
188+ # Flaky, unknown reason
189+ "test_in_interface"
188190
189- # shap is too often broken in nixpkgs
190- "test_shapley_text"
191+ # shap is too often broken in nixpkgs
192+ "test_shapley_text"
191193
192- # fails without network
193- "test_download_if_url_correct_parse"
194+ # fails without network
195+ "test_download_if_url_correct_parse"
194196
195- # flaky: OSError: Cannot find empty port in range: 7860-7959
196- "test_docs_url"
197- "test_orjson_serialization"
198- "test_dataset_is_updated"
199- "test_multimodal_api"
197+ # flaky: OSError: Cannot find empty port in range: 7860-7959
198+ "test_docs_url"
199+ "test_orjson_serialization"
200+ "test_dataset_is_updated"
201+ "test_multimodal_api"
200202
201- # tests if pip and other tools are installed
202- "test_get_executable_path"
203- ] ++ lib . optionals stdenv . hostPlatform . isDarwin [
204- # flaky on darwin (depend on port availability)
205- "test_all_status_messages"
206- "test_async_generators"
207- "test_async_generators_interface"
208- "test_async_iterator_update_with_new_component"
209- "test_concurrency_limits"
210- "test_default_concurrency_limits"
211- "test_default_flagging_callback"
212- "test_end_to_end"
213- "test_end_to_end_cache_examples"
214- "test_event_data"
215- "test_every_does_not_block_queue"
216- "test_example_caching_relaunch"
217- "test_example_caching_relaunch"
218- "test_exit_called_at_launch"
219- "test_file_component_uploads"
220- "test_files_saved_as_file_paths"
221- "test_flagging_does_not_create_unnecessary_directories"
222- "test_flagging_no_permission_error_with_flagging_disabled"
223- "test_info_and_warning_alerts"
224- "test_info_isolation"
225- "test_launch_analytics_does_not_error_with_invalid_blocks"
226- "test_no_empty_audio_files"
227- "test_no_empty_image_files"
228- "test_no_empty_video_files"
229- "test_non_streaming_api"
230- "test_non_streaming_api_async"
231- "test_pil_images_hashed"
232- "test_progress_bar"
233- "test_progress_bar_track_tqdm"
234- "test_queue_when_using_auth"
235- "test_restart_after_close"
236- "test_set_share_in_colab"
237- "test_show_error"
238- "test_simple_csv_flagging_callback"
239- "test_single_request"
240- "test_socket_reuse"
241- "test_start_server"
242- "test_state_holder_is_used_in_postprocess"
243- "test_state_stored_up_to_capacity"
244- "test_static_files_single_app"
245- "test_streaming_api"
246- "test_streaming_api_async"
247- "test_streaming_api_with_additional_inputs"
248- "test_sync_generators"
249- "test_time_to_live_and_delete_callback_for_state"
250- "test_updates_stored_up_to_capacity"
251- "test_varying_output_forms_with_generators"
252- ] ;
203+ # tests if pip and other tools are installed
204+ "test_get_executable_path"
205+ ]
206+ ++ lib . optionals stdenv . hostPlatform . isDarwin [
207+ # flaky on darwin (depend on port availability)
208+ "test_all_status_messages"
209+ "test_async_generators"
210+ "test_async_generators_interface"
211+ "test_async_iterator_update_with_new_component"
212+ "test_concurrency_limits"
213+ "test_default_concurrency_limits"
214+ "test_default_flagging_callback"
215+ "test_end_to_end"
216+ "test_end_to_end_cache_examples"
217+ "test_event_data"
218+ "test_every_does_not_block_queue"
219+ "test_example_caching_relaunch"
220+ "test_example_caching_relaunch"
221+ "test_exit_called_at_launch"
222+ "test_file_component_uploads"
223+ "test_files_saved_as_file_paths"
224+ "test_flagging_does_not_create_unnecessary_directories"
225+ "test_flagging_no_permission_error_with_flagging_disabled"
226+ "test_info_and_warning_alerts"
227+ "test_info_isolation"
228+ "test_launch_analytics_does_not_error_with_invalid_blocks"
229+ "test_no_empty_audio_files"
230+ "test_no_empty_image_files"
231+ "test_no_empty_video_files"
232+ "test_non_streaming_api"
233+ "test_non_streaming_api_async"
234+ "test_pil_images_hashed"
235+ "test_progress_bar"
236+ "test_progress_bar_track_tqdm"
237+ "test_queue_when_using_auth"
238+ "test_restart_after_close"
239+ "test_set_share_in_colab"
240+ "test_show_error"
241+ "test_simple_csv_flagging_callback"
242+ "test_single_request"
243+ "test_socket_reuse"
244+ "test_start_server"
245+ "test_state_holder_is_used_in_postprocess"
246+ "test_state_stored_up_to_capacity"
247+ "test_static_files_single_app"
248+ "test_streaming_api"
249+ "test_streaming_api_async"
250+ "test_streaming_api_with_additional_inputs"
251+ "test_sync_generators"
252+ "test_time_to_live_and_delete_callback_for_state"
253+ "test_updates_stored_up_to_capacity"
254+ "test_varying_output_forms_with_generators"
255+ ] ;
253256 disabledTestPaths = [
254257 # 100% touches network
255258 "test/test_networking.py"
0 commit comments