python3Packages.gradio: fix build (#356645)

This commit is contained in:
Pol Dellaiera
2024-11-17 15:55:25 +01:00
committed by GitHub
2 changed files with 81 additions and 75 deletions

View File

@@ -105,7 +105,10 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
passthru.updateScript = nix-update-script {
extraArgs = [ "--version-regex" "gradio_client@(.*)" ];
extraArgs = [
"--version-regex"
"gradio_client@(.*)"
];
};
meta = {

View File

@@ -87,6 +87,7 @@ buildPythonPackage rec {
"tomlkit"
"aiofiles"
"markupsafe"
"pillow"
];
pythonRemoveDeps = [
@@ -169,7 +170,8 @@ buildPythonPackage rec {
ulimit -n 4096
'';
disabledTests = [
disabledTests =
[
# Actually broken
"test_mount_gradio_app"
"test_processing_utils_backwards_compatibility" # type error
@@ -200,7 +202,8 @@ buildPythonPackage rec {
# tests if pip and other tools are installed
"test_get_executable_path"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# flaky on darwin (depend on port availability)
"test_all_status_messages"
"test_async_generators"