Commit 6bb94ba0 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python312Packages.gradio-client: 1.2.0 -> 1.3.0

parent 978ad609
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  nix-update-script,
@@ -27,7 +28,7 @@

buildPythonPackage rec {
  pname = "gradio-client";
  version = "1.2.0";
  version = "1.3.0";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -39,7 +40,7 @@ buildPythonPackage rec {
    # not to be confused with @gradio/client@${version}
    rev = "refs/tags/gradio_client@${version}";
    sparseCheckout = [ "client/python" ];
    hash = "sha256-l5WHNerSYNXrFGOpAqxxh0JLiFpatxq6a62q83tEavo=";
    hash = "sha256-UZQWguUN3l0cj2wb2f7A61RTLy9nPYcIEwHIo+F1kR0=";
  };
  prePatch = ''
    cd client/python
@@ -91,6 +92,14 @@ buildPythonPackage rec {
    #"-x" "-W" "ignore" # uncomment for debugging help
  ];

  disabledTests = lib.optionals stdenv.isDarwin [
    # flaky: OSError: Cannot find empty port in range: 7860-7959
    "test_layout_components_in_output"
    "test_layout_and_state_components_in_output"
    "test_upstream_exceptions"
    "test_httpx_kwargs"
  ];

  pythonImportsCheck = [ "gradio_client" ];

  __darwinAllowLocalNetworking = true;