python3Packages.gradio: fix build (#356645)
This commit is contained in:
@@ -105,7 +105,10 @@ buildPythonPackage rec {
|
|||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script {
|
passthru.updateScript = nix-update-script {
|
||||||
extraArgs = [ "--version-regex" "gradio_client@(.*)" ];
|
extraArgs = [
|
||||||
|
"--version-regex"
|
||||||
|
"gradio_client@(.*)"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ buildPythonPackage rec {
|
|||||||
"tomlkit"
|
"tomlkit"
|
||||||
"aiofiles"
|
"aiofiles"
|
||||||
"markupsafe"
|
"markupsafe"
|
||||||
|
"pillow"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRemoveDeps = [
|
pythonRemoveDeps = [
|
||||||
@@ -169,7 +170,8 @@ buildPythonPackage rec {
|
|||||||
ulimit -n 4096
|
ulimit -n 4096
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests =
|
||||||
|
[
|
||||||
# Actually broken
|
# Actually broken
|
||||||
"test_mount_gradio_app"
|
"test_mount_gradio_app"
|
||||||
"test_processing_utils_backwards_compatibility" # type error
|
"test_processing_utils_backwards_compatibility" # type error
|
||||||
@@ -200,7 +202,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
# tests if pip and other tools are installed
|
# tests if pip and other tools are installed
|
||||||
"test_get_executable_path"
|
"test_get_executable_path"
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
# flaky on darwin (depend on port availability)
|
# flaky on darwin (depend on port availability)
|
||||||
"test_all_status_messages"
|
"test_all_status_messages"
|
||||||
"test_async_generators"
|
"test_async_generators"
|
||||||
|
|||||||
Reference in New Issue
Block a user